diff options
author | Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com> | 2011-12-27 08:24:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:46 -0500 |
commit | 30fa904724b9c7737264e2eada7f16afc8deee79 (patch) | |
tree | 988c7a3d0cf4af3e454c1e244be2f555d4dc55c5 /net/mac80211 | |
parent | f961e34ebef84b532ec6c477f73b66d9a8b0ddbc (diff) |
mac80211: use RCU read locks for sta_info_get
this is being recently introduced by the commit
a85e1d55974646a442d95911e3f7d7a891ea9ac5
Cc: Paul Stewart <pstew@google.com>
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 57989a046fca..ecb4c84c1bb3 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1385,9 +1385,11 @@ void ieee80211_beacon_connection_loss_work(struct work_struct *work) | |||
1385 | struct sta_info *sta; | 1385 | struct sta_info *sta; |
1386 | 1386 | ||
1387 | if (ifmgd->associated) { | 1387 | if (ifmgd->associated) { |
1388 | rcu_read_lock(); | ||
1388 | sta = sta_info_get(sdata, ifmgd->bssid); | 1389 | sta = sta_info_get(sdata, ifmgd->bssid); |
1389 | if (sta) | 1390 | if (sta) |
1390 | sta->beacon_loss_count++; | 1391 | sta->beacon_loss_count++; |
1392 | rcu_read_unlock(); | ||
1391 | } | 1393 | } |
1392 | 1394 | ||
1393 | if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR) | 1395 | if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR) |