All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix scan_sdata assignment
@ 2012-07-18 18:41 Johannes Berg
  2012-07-24 14:54 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Johannes Berg @ 2012-07-18 18:41 UTC (permalink / raw)
  To: linux-wireless; +Cc: Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

We need to use RCU to assign scan_sdata.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---
 net/mac80211/scan.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index e80a8b6..85d89d8 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -300,7 +300,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;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mac80211: fix scan_sdata assignment
  2012-07-18 18:41 [PATCH] mac80211: fix scan_sdata assignment Johannes Berg
@ 2012-07-24 14:54 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2012-07-24 14:54 UTC (permalink / raw)
  To: linux-wireless

On Wed, 2012-07-18 at 20:41 +0200, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> We need to use RCU to assign scan_sdata.

Applied for 3.6.

johannes


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-24 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 18:41 [PATCH] mac80211: fix scan_sdata assignment Johannes Berg
2012-07-24 14:54 ` Johannes Berg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.