]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 6 Mar 2013 22:17:08 +0000 (23:17 +0100)
commit32db763787c4d51e014a8669817654ec75ea6859
tree4d5a7f69e162e25d97128eb92a0179f81e32a5d5
parenta08310dc3013eff5f5372b94eff3f003a6b9a86c
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