From: Johannes Berg Date: Tue, 6 Sep 2011 10:47:39 +0000 (+0200) Subject: mac80211: fix missing sta_lock in __sta_info_destroy X-Git-Tag: v3.1-rc7~2^2~12^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bae7d976976fa52d345805ba686934cd548343e;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed