rtl8188eu: Protect against pfhdr NULL

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-08-18 18:00:21 -05:00
parent fc326e6a07
commit 429924c7ed

View file

@ -1894,6 +1894,10 @@ static union recv_frame * recvframe_defrag(struct adapter *adapter, struct __qu
plist = get_next(phead);
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
pfhdr =&prframe->u.hdr;
if (!pfhdr) {
pr_err("pfhdr NULL in %s\n", __func__);
return NULL;
}
rtw_list_delete(&(prframe->u.list));
if (curfragnum!=pfhdr->attrib.frag_num)