cfg80211: fix scheduled scan pointer access
authorJohannes Berg <johannes.berg@intel.com>
Mon, 21 Oct 2013 09:33:35 +0000 (11:33 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 21 Oct 2013 09:59:15 +0000 (11:59 +0200)
commit79845c662eeb95c9a180b9bd0d3ad848ee65b94c
tree191a0f1abdc8af9391159bd09c11fa981204aa12
parent095d81cee742fc31e1218077ca6ca8f0df07c613
cfg80211: fix scheduled scan pointer access

Since rdev->sched_scan_req is dereferenced outside the
lock protecting it, this might be done at the wrong
time, causing crashes. Move the dereference to where
it should be - inside the RTNL locked section.

Cc: stable@vger.kernel.org [3.8+]
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c