mac80211: fix missing sta_lock in __sta_info_destroy
commit4bae7d976976fa52d345805ba686934cd548343e
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2011 10:47:39 +0000 (6 12:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 13 Sep 2011 18:18:38 +0000 (13 14:18 -0400)
tree506f76621e94c4505b4ee018c920cd74ed2bb314
parentbac2555c6d86387132930af4d14cb47c4dd3f4f7
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>
net/mac80211/sta_info.c