]> git.karo-electronics.de Git - karo-tx-linux.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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Jul 2012 13:26:58 +0000 (15:26 +0200)
commita6f38ac3cc853189705006cc1e0f17ce8467a1df
tree82184dc3a42ecc6849457d10423dd6676cb09b77
parentc62094889f7bb0b3343d5404c9d139d2fb1712bb
mac80211: fix crash with single-queue drivers

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>
net/mac80211/util.c