mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Merge "qcacmn: Release peer ref if mem malloc fails and reset system"
This commit is contained in:
commit
e6353c654e
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