mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-21 20:13:39 +00:00
rtl8188eu: Add test for memory allocation failure
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
bb55393afa
commit
f760caeb39
1 changed files with 2 additions and 0 deletions
|
@ -936,6 +936,8 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
|
|||
}
|
||||
|
||||
bssid = (struct wlan_bssid_ex *)rtw_zmalloc(sizeof(struct wlan_bssid_ex));
|
||||
if (!bssid)
|
||||
return _FAIL;
|
||||
|
||||
subtype = GetFrameSubType(pframe) >> 4;
|
||||
|
||||
|
|
Loading…
Reference in a new issue