mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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:
parent
396bbc8f6f
commit
de062d80ca
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue