summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGovind Singh <govinds@qti.qualcomm.com>2016-06-15 14:28:21 +0530
committerAnjaneedevi Kapparapu <akappa@codeaurora.org>2016-06-16 15:40:45 +0530
commit4f5314c4ca800e4c9956ec6e185feefa8e806ad3 (patch)
tree9ee6241f16d18ae9a2071c14eb643115a093655b
parent4f2c8d81ea0686df13609bd812fad685e53975a9 (diff)
qcacld-2.0: Free Proto trace buffer after disconnection
Free proto trace buffer after disconnection, as proto trace buffer is getting freed prior disconnection from AP and resulting in invalid access. Change-Id: Ief7ded29ea04be547d355f96e817aee776422142 CRs-Fixed: 1028262
-rw-r--r--CORE/HDD/src/wlan_hdd_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 8370e3c1535b..f262a5a188cc 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -15871,10 +15871,6 @@ static void hdd_driver_exit(void)
pHddCtx->driver_being_stopped = false;
-#ifdef QCA_PKT_PROTO_TRACE
- if (VOS_FTM_MODE != hdd_get_conparam())
- vos_pkt_proto_trace_close();
-#endif /* QCA_PKT_PROTO_TRACE */
while(pHddCtx->isLogpInProgress ||
vos_is_logp_in_progress(VOS_MODULE_ID_VOSS, NULL)) {
VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_FATAL,
@@ -15896,6 +15892,10 @@ static void hdd_driver_exit(void)
}
vos_wait_for_work_thread_completion(__func__);
+#ifdef QCA_PKT_PROTO_TRACE
+ if (VOS_FTM_MODE != hdd_get_conparam())
+ vos_pkt_proto_trace_close();
+#endif /* QCA_PKT_PROTO_TRACE */
hif_unregister_driver();