]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mac80211: use correct station flags lock
authorJohannes Berg <johannes.berg@intel.com>
Tue, 14 Sep 2010 20:06:53 +0000 (22:06 +0200)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:01 +0000 (23:40 +0100)
commit0fe79ffa47b60778e71fc8b2dcfc30eb9681db30
tree2fc86784307bc5d00b9a161f679ac347b78346dc
parentb732c91f60cd067a497515b82af31950361367f4
mac80211: use correct station flags lock

commit f5521b13880f4f4f612e1d20dd4f565122d16e04 upstream.

This code is modifying the station flags, and
as such should hold the flags lock so it can
do so atomically vs. other flags modifications
and readers. This issue was introduced when
this code was added in eccb8e8f, as it used
the wrong lock (thus not fixing the race that
was previously documented in a comment.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
net/mac80211/cfg.c