mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-30 17:02:28 +00:00
Protect against pfhdr NULL
This commit is contained in:
parent
dcad331843
commit
dec5aaf128
@ -2695,6 +2695,10 @@ union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q)
|
|||||||
plist = get_next(phead);
|
plist = get_next(phead);
|
||||||
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
prframe = LIST_CONTAINOR(plist, union recv_frame, u);
|
||||||
pfhdr = &prframe->u.hdr;
|
pfhdr = &prframe->u.hdr;
|
||||||
|
if (!pfhdr) {
|
||||||
|
pr_err("pfhdr NULL in %s\n", __func__);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
rtw_list_delete(&(prframe->u.list));
|
rtw_list_delete(&(prframe->u.list));
|
||||||
|
|
||||||
if (curfragnum != pfhdr->attrib.frag_num) {
|
if (curfragnum != pfhdr->attrib.frag_num) {
|
||||||
|
Loading…
Reference in New Issue
Block a user