]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:11 +0000 (13:32 -0800)
commit3dce958105c786ab6968b2bb1ac822d497946a34
treedad0da69eefee48a354751b517151fb24c18345d
parent70b1988e97049aa3082b9a3076995d49296ad85d
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>
net/mac80211/cfg.c