diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-07-18 06:42:58 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-24 10:54:11 -0400 |
commit | 3aa569c3fedbd0d16041d08bf6e89b8c43aee650 (patch) | |
tree | c7841c94c5546a674f98fedd4715006222b279c9 /net | |
parent | 8a70e7f8f3081770238fbe19f78116af1d4b0652 (diff) |
mac80211: fix scan_sdata assignment
We need to use RCU to assign scan_sdata.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 169da0742c81..7644181cb6b4 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -304,7 +304,7 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted, | |||
304 | if (local->scan_req != local->int_scan_req) | 304 | if (local->scan_req != local->int_scan_req) |
305 | cfg80211_scan_done(local->scan_req, aborted); | 305 | cfg80211_scan_done(local->scan_req, aborted); |
306 | local->scan_req = NULL; | 306 | local->scan_req = NULL; |
307 | local->scan_sdata = NULL; | 307 | rcu_assign_pointer(local->scan_sdata, NULL); |
308 | 308 | ||
309 | local->scanning = 0; | 309 | local->scanning = 0; |
310 | local->scan_channel = NULL; | 310 | local->scan_channel = NULL; |