rtl8188eu: Fix a possible NUMM dereference

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2017-01-20 20:07:49 -06:00
parent 0ebfaa07e4
commit 324b62c685

View file

@ -955,7 +955,9 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter, struct pkt_attrib *pat
break; break;
} }
return ptxservq->qcnt; if (ptxservq)
return ptxservq->qcnt;
return 0;
} }
/* /*