rtl8188eu: Guard against pktfile crashes when skb address is NULL

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2017-01-16 15:37:23 -06:00
parent 0ebfaa07e4
commit b3bfe784a4

View file

@ -1002,6 +1002,9 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct
s32 bmcst = IS_MCAST(pattrib->ra);
s32 res = _SUCCESS;
if (!pkt)
return _FAIL;
psta = rtw_get_stainfo(&padapter->stapriv, pattrib->ra);
if (psta == NULL)