From 429924c7ed12e6fd1b5c8b38ce43987bb907ea52 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 18 Aug 2015 18:00:21 -0500 Subject: [PATCH] rtl8188eu: Protect against pfhdr NULL Signed-off-by: Larry Finger --- core/rtw_recv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 5204482..246765f 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -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)