[net80211] don't try to follow a NULL rxs pointer down the sink.

It's smelly, and we already checked earlier whether we needed to.
This commit is contained in:
adrian 2017-10-13 06:49:07 +00:00
parent 1caf34f3f3
commit 5ff550eae1

View File

@ -278,7 +278,7 @@ ok:
*/
if (ieee80211_check_rxseq_amsdu_more(rxs)) {
ni->ni_rxseqs[tid] = rxseq;
if (ieee80211_check_rxseq_amsdu(rxs))
if ((rxs != NULL) && ieee80211_check_rxseq_amsdu(rxs))
IEEE80211_NODE_STAT(ni, rx_amsdu_more_end);
} else {
/* .. still waiting */