From 71844ea2cba910c53386af5af1d235c0290a2b77 Mon Sep 17 00:00:00 2001 From: Manikandan Mohan Date: Wed, 5 Jul 2017 21:51:08 -0700 Subject: [PATCH] qcacld-3.0: Move IPA SSR deinit after CDS Sched close Fix crash due to race condition between MC thread and shutdown sequence worker thread by moving IPA SSR deinit after MC thread shutdown. Change-Id: Id9ee6de5b176e302f865ab959aca29fb708dd6bc CRs-fixed: 2071804 --- core/hdd/src/wlan_hdd_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index a30eeb1ca990..caa94c561cf6 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -1268,7 +1268,6 @@ QDF_STATUS hdd_wlan_shutdown(void) hdd_debug("Invoking packetdump deregistration API"); wlan_deregister_txrx_packetdump(); wlan_cfg80211_cleanup_scan_queue(pHddCtx->hdd_pdev); - hdd_ipa_uc_ssr_deinit(); hdd_reset_all_adapters(pHddCtx); /* Flush cached rx frame queue */ @@ -1297,6 +1296,7 @@ QDF_STATUS hdd_wlan_shutdown(void) QDF_ASSERT(false); } + hdd_ipa_uc_ssr_deinit(); qdf_mc_timer_stop(&pHddCtx->tdls_source_timer); hdd_bus_bandwidth_destroy(pHddCtx);