Skip to content

Commit

Permalink
rtl8192du: Diagnose NULL pointer in rtw_txframes_sta_ac_pending()
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
  • Loading branch information
lwfinger committed Jun 27, 2014
1 parent a8ada8f commit f17fe4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/rtw_xmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,10 @@ s32 rtw_txframes_sta_ac_pending(struct rtw_adapter *padapter, struct pkt_attrib
break;
}

if (!ptxservq) {
pr_err("ptxservq is NULL for priority %d\n", priority);
return 0;
}
return ptxservq->qcnt;
}

Expand Down

0 comments on commit f17fe4e

Please sign in to comment.