rtl8188eu: Fix error path for memory allocation failure

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-01-26 16:01:30 -06:00
parent f8d1526317
commit 14c43aeb12

View file

@ -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));
if (!bssid)
return _FAIL;
subtype = GetFrameSubType(pframe) >> 4;