mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-02-08 15:42:50 +00:00
rtl8188eu: Fix error path for memory allocation failure
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
f8d1526317
commit
14c43aeb12
1 changed files with 2 additions and 0 deletions
|
@ -1359,6 +1359,8 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
||||||
}
|
}
|
||||||
|
|
||||||
bssid = (WLAN_BSSID_EX *)rtw_zmalloc(sizeof(WLAN_BSSID_EX));
|
bssid = (WLAN_BSSID_EX *)rtw_zmalloc(sizeof(WLAN_BSSID_EX));
|
||||||
|
if (!bssid)
|
||||||
|
return _FAIL;
|
||||||
|
|
||||||
subtype = GetFrameSubType(pframe) >> 4;
|
subtype = GetFrameSubType(pframe) >> 4;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue