mac80211: always synchronize_net() during station removal
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 22:17:08 +0000 (23:17 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 22:17:08 +0000 (23:17 +0100)
commit27a737ff7cb062fb9cbceba9b44d60aa74862bfa
tree4d5a7f69e162e25d97128eb92a0179f81e32a5d5
parent801d929ca7d935ee199fd61d8ef914f51e892270
mac80211: always synchronize_net() during station removal

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.

Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c