mac80211: fix issue with possible txq NULL pointer
authorErik Stromdahl <erik.stromdahl@gmail.com>
Fri, 14 Sep 2018 16:00:34 +0000 (18:00 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:56:29 +0000 (09:56 +0200)
commita5ae326418b353301c6acc787a8988782e1762f6
tree4963e8be5b0dc515fed1817c14fbd7f80ab13192
parent6762696429bbc4b2e1b6e5996c3d99da8bbc627d
mac80211: fix issue with possible txq NULL pointer

Drivers that do not have the BUFF_MMPDU_TXQ flag set will not have a
TXQ for the special TID = 16.

In this case, the last member in the *struct ieee80211_sta* txq array
will be NULL.

We must check this in order not to get a NULL pointer dereference when
iterating the txq array.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c