From 29c9986f1ff90978826a9fbda24107c7b808bf75 Mon Sep 17 00:00:00 2001 From: bings Date: Wed, 1 Nov 2017 13:54:13 +0800 Subject: [PATCH] qcacld-3.0: Do adapter deinit after adapter stop in hdd_wlan_exit Do adapter deinit in hdd_wlan_exit to free sapConfig.acs_cfg.ch_list. Otherwise there may be memory leak. Change-Id: I523a649e37fc0582c7e913edfa7d89f1eaac76a6 CRs-Fixed: 2136031 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 29f43b89e4a4..bc9bb31e2374 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -6015,6 +6015,7 @@ static void hdd_wlan_exit(struct hdd_context *hdd_ctx) hdd_abort_mac_scan_all_adapters(hdd_ctx); hdd_abort_sched_scan_all_adapters(hdd_ctx); hdd_stop_all_adapters(hdd_ctx, true); + hdd_deinit_all_adapters(hdd_ctx, false); } /*