summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Brown <dustinb@codeaurora.org>2017-10-17 15:59:02 -0700
committersnandini <snandini@codeaurora.org>2017-10-17 19:27:24 -0700
commit665aebcd3e22b613fdfb76a8fc04b078dedae07e (patch)
tree2667e8aa2c5a637eaac69dd01dcfd7c269f1d4e1
parent3f94096a66f0488f2304e024c73956d6c007b5ea (diff)
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
-rw-r--r--core/hdd/src/wlan_hdd_main.c5
1 files changed, 4 insertions, 1 deletions
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();