aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-09-06 12:47:39 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-09-13 14:18:38 -0400
commit4bae7d976976fa52d345805ba686934cd548343e (patch)
tree506f76621e94c4505b4ee018c920cd74ed2bb314 /net/mac80211
parentbac2555c6d86387132930af4d14cb47c4dd3f4f7 (diff)
downloadkernel_goldelico_gta04-4bae7d976976fa52d345805ba686934cd548343e.zip
kernel_goldelico_gta04-4bae7d976976fa52d345805ba686934cd548343e.tar.gz
kernel_goldelico_gta04-4bae7d976976fa52d345805ba686934cd548343e.tar.bz2
mac80211: fix missing sta_lock in __sta_info_destroy
Since my commit 34e895075e21be3e21e71d6317440d1ee7969ad0 ("mac80211: allow station add/remove to sleep") there is a race in mac80211 when it clears the TIM bit because a sleeping station disconnected, the spinlock isn't held around the relevant code any more. Use the right API to acquire the spinlock correctly. Cc: stable@kernel.org [2.6.34+] Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/sta_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index 3db78b6..21070e9 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -665,7 +665,7 @@ static int __must_check __sta_info_destroy(struct sta_info *sta)
BUG_ON(!sdata->bss);
atomic_dec(&sdata->bss->num_sta_ps);
- __sta_info_clear_tim_bit(sdata->bss, sta);
+ sta_info_clear_tim_bit(sta);
}
local->num_sta--;