mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-25 14:03:40 +00:00
rtl8188eu: Protect against pfhdr NULL
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
fc326e6a07
commit
429924c7ed
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue