Protect against pfhdr NULL

This commit is contained in:
kimocoder 2019-02-14 17:59:16 +01:00
parent 9e66187e88
commit 78b58d1213

View File

@ -2654,6 +2654,10 @@ union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q)
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) {