]> 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)
commite37655017b41fdbeff1fe0af72679381703bdc17
tree4d5a7f69e162e25d97128eb92a0179f81e32a5d5
parent664e8e5ddc00598b2ec50b7d1f6606686a06ffd4
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