]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix sw scan locking
authorJohannes Berg <johannes.berg@intel.com>
Thu, 7 Oct 2010 10:55:24 +0000 (12:55 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Oct 2010 18:41:27 +0000 (14:41 -0400)
commit965d324c4c2eed01ea68029379dee263e4446001
treed45093d306d686d4cb0cdc391c6895f372b20495
parent4080f48a44e88850da4866fa7cdb168591596b1f
mac80211: fix sw scan locking

The recent scan overhaul broke locking
because now we can jump to code that
attempts to unlock, while we don't have
the mutex held. Fix this by holding the
mutex around all the relevant code.

Reported-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/scan.c