From 67bc7ba4510bdb6fb27d2d1d0cd14860ae314c51 Mon Sep 17 00:00:00 2001 From: bings Date: Wed, 1 Nov 2017 10:54:15 +0800 Subject: 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 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); -- cgit v1.2.3