From 02a1f113c8e06be181b312edcadf4f9759ece1f0 Mon Sep 17 00:00:00 2001 From: Abdul Muqtadeer Ahmed Date: Thu, 27 Aug 2020 17:00:52 +0530 Subject: [PATCH] qcacld-3.0: Purge shutdown notifier during modules close During the driver initialization if there is any issue, in the error path the shutdown notifiers are not getting freed. To resolve the issue purge the shutdown notifier before the stop modules. Change-Id: I51b20e5cddf558bb366b46f0650ac65754f23dcd CRs-Fixed: 2761406 --- 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 36beece64597..870eeec3d0c1 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4071,6 +4071,7 @@ release_lock: hdd_ctx->target_hw_name = NULL; } + cds_shutdown_notifier_purge(); hdd_check_for_leaks(hdd_ctx, reinit); hdd_debug_domain_set(QDF_DEBUG_DOMAIN_INIT);