Skip to contentSkip to conversation

mac80211: use rcu_read_lock before sta_info_get

RFC New Mohammed Shafi Shajakhan 1 participant 1 message Dec 25, 2011 mac80211

lore
Share & tools
lore
#0 lore raw

RFC 1/1 mac80211: use rcu_read_lock before sta_info_get

From: Mohammed Shafi Shajakhan <[email protected]>

---
 net/mac80211/mlme.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
net/mac80211/mlme.c +2 -0
index 57989a0..c8a1acc 100644
@@ -1385,7 +1385,9 @@ void ieee80211_beacon_connection_loss_work(struct work_struct *work)
 	struct sta_info *sta;
 
 	if (ifmgd->associated) {
+		rcu_read_lock();
 		sta = sta_info_get(sdata, ifmgd->bssid);
+		rcu_read_unlock();
 		if (sta)
 			sta->beacon_loss_count++;
 	}
Signature · 1 line
1.7.0.4