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:
Varun Reddy Yeturu 2017-12-21 15:37:57 -08:00 • committed by snandini
commit d6b2247ece

View file

@ -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;