summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingying Tang <yintang@qti.qualcomm.com>2016-03-31 16:19:10 +0800
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-04-07 15:42:29 +0530
commit4d02616002ce3f31c438839068d9b7fa9e98fe98 (patch)
tree1befecfa372ba9394cdc5b57de2ff840c9ffc5f7
parent8cc4d574a1816e2c33884ead4e6e6ce31e15fe67 (diff)
qcacld-2.0: Fix crash when unload host in epping mode
HDD context is freed before wlan_hdd_exit() when unload host in epping mode. Crash will happen in wlan_hdd_exit() because HDD context is used in this routine. Move vos_mem_free() to after wlan_hdd_exit() to fix this issue. Change-Id: Iac4c4c94f9d4a7a4f818bd1727969316cb1b461e CRs-Fixed: 997335
-rw-r--r--CORE/EPPING/src/epping_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/EPPING/src/epping_main.c b/CORE/EPPING/src/epping_main.c
index 1fc445db2869..7fb1901044d5 100644
--- a/CORE/EPPING/src/epping_main.c
+++ b/CORE/EPPING/src/epping_main.c
@@ -251,7 +251,6 @@ void epping_driver_exit(v_CONTEXT_t pVosContext)
}
else
{
- vos_mem_free(pEpping_ctx);
#ifdef QCA_PKT_PROTO_TRACE
vos_pkt_proto_trace_close();
#endif /* QCA_PKT_PROTO_TRACE */
@@ -260,6 +259,7 @@ void epping_driver_exit(v_CONTEXT_t pVosContext)
vos_set_load_unload_in_progress(VOS_MODULE_ID_VOSS, TRUE);
}
hif_unregister_driver();
+ vos_mem_free(pEpping_ctx);
vos_preClose( &pVosContext );
#ifdef MEMORY_DEBUG
vos_mem_exit();