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)
commit7b99a7c2dab7efe7c265b66fedbf3444958ebfe3
treed45093d306d686d4cb0cdc391c6895f372b20495
parent4b34d432b0fcff422304de4eb49d6da861fe335c
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