From 9bf53ab36f4cea522443493a13b4ef46fe4d8232 Mon Sep 17 00:00:00 2001 From: Arun Kumar Khandavalli Date: Fri, 10 Jan 2020 13:20:33 +0530 Subject: [PATCH] qcacld-3.0: Use new api to check for leaks wlan_objmgr_psoc_check_for_leaks The current implementaion check for peer, vdev and pdev leaks on psoc in order and if any leak is found for peer then QDF_DEBUG_PANIC is called and vdev and pdev leaks are not checked. Similar is the case if vdev leak is found, pdev leaks are not checked. Invoke new API to check for all the object leaks and then result in panic. Change-Id: Icf6622760f3646b82f893beb7415b95307e2ccd7 CRs-Fixed: 2604594 --- core/hdd/src/wlan_hdd_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 80e5c5a0a95d..ecd6a855dd56 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -3166,9 +3166,7 @@ static void hdd_check_for_leaks(struct hdd_context *hdd_ctx, bool is_ssr) { /* DO NOT REMOVE these checks; for false positives, read above first */ - wlan_objmgr_psoc_check_for_peer_leaks(hdd_ctx->psoc); - wlan_objmgr_psoc_check_for_vdev_leaks(hdd_ctx->psoc); - wlan_objmgr_psoc_check_for_pdev_leaks(hdd_ctx->psoc); + wlan_objmgr_psoc_check_for_leaks(hdd_ctx->psoc); /* many adapter resources are not freed by design during SSR */ if (is_ssr)