浏览代码

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
Arun Kumar Khandavalli 5 年之前
父节点
当前提交
9bf53ab36f
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      core/hdd/src/wlan_hdd_main.c

+ 1 - 3
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)