summaryrefslogtreecommitdiffstats
path: root/net/wireless/scan.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-11-05 15:49:16 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-11-05 15:49:16 -0500
commitb476d3f143e8b213273834e92615370ca65ff126 (patch)
tree0a3fee28a93f580a5474165dbdc3837d580310b6 /net/wireless/scan.c
parent353c78152c10027b8da5de446bad3472f977fcdc (diff)
parentbbe09bbcf4454e826e3fb08e87d81f32c0030658 (diff)
downloadop-kernel-dev-b476d3f143e8b213273834e92615370ca65ff126.zip
op-kernel-dev-b476d3f143e8b213273834e92615370ca65ff126.tar.gz
Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Diffstat (limited to 'net/wireless/scan.c')
-rw-r--r--net/wireless/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/scan.c b/net/wireless/scan.c
index eeb7148..d4397eb 100644
--- a/net/wireless/scan.c
+++ b/net/wireless/scan.c
@@ -254,10 +254,10 @@ void __cfg80211_sched_scan_results(struct work_struct *wk)
rdev = container_of(wk, struct cfg80211_registered_device,
sched_scan_results_wk);
- request = rdev->sched_scan_req;
-
rtnl_lock();
+ request = rdev->sched_scan_req;
+
/* we don't have sched_scan_req anymore if the scan is stopping */
if (request) {
if (request->flags & NL80211_SCAN_FLAG_FLUSH) {
OpenPOWER on IntegriCloud