diff --git a/core/rtw_xmit.c b/core/rtw_xmit.c index 55d1fab..45b07eb 100644 --- a/core/rtw_xmit.c +++ b/core/rtw_xmit.c @@ -955,7 +955,9 @@ s32 rtw_txframes_sta_ac_pending(struct adapter *padapter, struct pkt_attrib *pat break; } - return ptxservq->qcnt; + if (ptxservq) + return ptxservq->qcnt; + return 0; } /*