Skip to content

Commit

Permalink
mac80211: fix scan_sdata assignment
Browse files Browse the repository at this point in the history
We need to use RCU to assign scan_sdata.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Johannes Berg committed Jul 24, 2012
1 parent 8a70e7f commit 3aa569c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted,
if (local->scan_req != local->int_scan_req)
cfg80211_scan_done(local->scan_req, aborted);
local->scan_req = NULL;
local->scan_sdata = NULL;
rcu_assign_pointer(local->scan_sdata, NULL);

local->scanning = 0;
local->scan_channel = NULL;
Expand Down

0 comments on commit 3aa569c

Please sign in to comment.