summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbings <bings@codeaurora.org>2017-11-01 10:54:15 +0800
committerbings <bings@codeaurora.org>2017-11-02 17:48:40 +0800
commit67bc7ba4510bdb6fb27d2d1d0cd14860ae314c51 (patch)
tree52893060702c7e1c83a41652377d6a66a2db7c1e
parentada24e7314837a3ad3cd48e827320c561a426c67 (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 43f209bf3633..c54c9ae51caf 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -5951,6 +5951,7 @@ static void hdd_wlan_exit(hdd_context_t *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);
}
unregister_netdevice_notifier(&hdd_netdev_notifier);