]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: fix crash with single-queue drivers
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Jul 2012 10:49:59 +0000 (12:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:51 +0000 (08:22 -0700)
commitf616071b3dc6a09b4b364ba9f020aa744df68b61
tree3dbdc1260a9ae4d5b7b288708edd952d1ca6e80e
parent5d87eafc65b032f71078008f9395503c366330bb
mac80211: fix crash with single-queue drivers

commit a6f38ac3cc853189705006cc1e0f17ce8467a1df upstream.

Larry (and some others I think) reported that with
single-queue drivers mac80211 crashes when waking
the queues. This happens because we allocate just
a single queue for each virtual interface in case
the driver doesn't have at least 4 queues, but the
code stopping/waking the virtual interface queues
wasn't taking this into account.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/util.c