qcacmn: Release peer ref if mem malloc fails and reset system

Logically deleted peers are used by umac for host/fw
synchronization. Any failure to return logically
deleted peers is catastrophic and will end up in random
behavior/fw assert.
This change makes below changes:
1. Release peer reference on malloc failure
2. Reset system if malloc fails
3. Move print log level to FATAL

Change-Id: I229f0e83a97b44b4436b4f9945265dcaf85901fd
CRs-Fixed: 2240560
This commit is contained in:
Om Prakash Tripathi 2018-05-11 16:41:26 +05:30 • committed by nshrivas
commit de062d80ca

View file

@ -1362,8 +1362,10 @@ static qdf_list_t
qdf_mem_malloc(
sizeof(struct wlan_logically_del_peer));
if (peer_list == NULL) {
wlan_objmgr_peer_release_ref(peer, dbg_id);
/* Lock is already released */
obj_mgr_err("Mem alloc failed");
obj_mgr_alert("Mem alloc failed");
WLAN_OBJMGR_BUG(0);
break;
}