summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiangwei Dong <liangwei@codeaurora.org>2016-09-29 03:06:50 -0400
committerqcabuildsw <qcabuildsw@localhost>2016-11-01 23:18:32 -0700
commite714b030ee2ba1ee40a119030e4e903cd6be7eb9 (patch)
treec8cd377c5eea3cdfd89a2de61452b2a5c02ffa18
parenta0e3ec546c6f2ccd32be70b08fd60f09668ad66e (diff)
qcacld-3.0: Fix SapAllChnlList memory leak
qcacld-2.0 to qcacld-3.0 propagation "MEMORY_DEBUG" enabled driver shows the SapAllChnlList is not freed upon driver unloading in SNS test. This commit fixes this issue by freeing channel list in WLANSAP_CLOSE API. Change-Id: I1c954336e14746060fec19f3ad89b3d4882306af CRs-Fixed: 985334
-rw-r--r--core/sap/src/sap_module.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/sap/src/sap_module.c b/core/sap/src/sap_module.c
index ef5f63c2fdd2..ba469312d551 100644
--- a/core/sap/src/sap_module.c
+++ b/core/sap/src/sap_module.c
@@ -456,6 +456,8 @@ QDF_STATUS wlansap_close(void *pCtx)
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
"wlansap_close");
+ sap_cleanup_channel_list(pCtx);
+
/* empty queues/lists/pkts if any */
wlansap_clean_cb(pSapCtx, true);