Browse Source

qcacmn: Trigger panic if psoc object is leaked when destroying obj mgr

Object manager global context has a child pointer to PSOC object and
until all PSOC objects are not freed parent global object manager
context can't be freed.

Trigger panic if PSOC objects are found to be leaking at the time of
object manager global context destruction.

Change-Id: Ie07c308984d3c0397b8beaf0cfe75f3b5ec53cbe
CRs-Fixed: 2027166
Rajeev Kumar 8 years ago
parent
commit
ae20f0b309
1 changed files with 1 additions and 0 deletions
  1. 1 0
      umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c

+ 1 - 0
umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c

@@ -77,6 +77,7 @@ QDF_STATUS wlan_objmgr_global_obj_deinit(void)
 		g_umac_glb_obj = NULL;
 	} else {
 		qdf_print("PSOCs are leaked can't free global objmgr ctx\n");
+		WLAN_OBJMGR_BUG(0);
 	}
 
 	return QDF_STATUS_SUCCESS;