]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: always synchronize_net() during station removal
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 22:17:08 +0000 (23:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:25:49 +0000 (09:25 -0700)
commit964909a72f6446115ce437637b0756b985df68e4
treee6a355f9cbaeb9df73b690e0991b7af644e5513c
parenta3f6fd302bab90e11c1d7952c3565e3f3c244824
mac80211: always synchronize_net() during station removal

commit 27a737ff7cb062fb9cbceba9b44d60aa74862bfa upstream.

If there are keys left during station removal, then a
synchronize_net() will be done (for each key, I have a
patch to address this for 3.10), otherwise it won't be
done at all which causes issues because the station
could be used for TX while it's being removed from the
driver -- that might confuse the driver.

Fix this by always doing synchronize_net() if no key
was present any more.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c