From 665aebcd3e22b613fdfb76a8fc04b078dedae07e Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 17 Oct 2017 15:59:02 -0700 Subject: qcacld-3.0: Skip leak detection in SSR start module During Sub-System Restart (SSR), many adapter resources are not freed by design. The stop modules code path already skips leak detection when SSR is in progress, but the start modules error handing code path does not. Skip leak detection in the start modules error path, if SSR is in progress, to prevent false positives under failure conditions. Change-Id: I9a50570235e80e5319ab7134a9afdd0e4bda5f54 CRs-Fixed: 2128446 --- core/hdd/src/wlan_hdd_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 72de42d8439a..73eb8c01dd31 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2217,7 +2217,10 @@ release_lock: hdd_ctx->start_modules_in_progress = false; mutex_unlock(&hdd_ctx->iface_change_lock); - hdd_check_for_leaks(); + /* many adapter resources are not freed by design in SSR case */ + if (!reinit) + hdd_check_for_leaks(); + qdf_mem_set_domain(QDF_MEM_DOMAIN_INIT); EXIT(); -- cgit v1.2.3