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
This commit is contained in:

committed by
Sandeep Puligilla

parent
38cea4afc4
commit
ae20f0b309
@@ -77,6 +77,7 @@ QDF_STATUS wlan_objmgr_global_obj_deinit(void)
|
|||||||
g_umac_glb_obj = NULL;
|
g_umac_glb_obj = NULL;
|
||||||
} else {
|
} else {
|
||||||
qdf_print("PSOCs are leaked can't free global objmgr ctx\n");
|
qdf_print("PSOCs are leaked can't free global objmgr ctx\n");
|
||||||
|
WLAN_OBJMGR_BUG(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user