mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacmn: Check for successful memory allocation for peer
Check if memory is allocated successfully for the peer
before adding the peer to the deleted peer table.
Change-Id: Iea623075f85787039d67733dc8071e0c093073ed
CRs-Fixed: 2160767
This commit is contained in:
parent
a7ef89abb1
commit
d6b2247ece
1 changed files with 5 additions and 0 deletions
|
|
@ -1235,6 +1235,11 @@ static qdf_list_t
|
|||
peer_list =
|
||||
qdf_mem_malloc(
|
||||
sizeof(struct wlan_logically_del_peer));
|
||||
if (peer_list == NULL) {
|
||||
/* Lock is already released */
|
||||
obj_mgr_err("Mem alloc failed");
|
||||
break;
|
||||
}
|
||||
|
||||
peer_list->peer = peer;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue