Skip to content

Commit 30fa904

Browse files
Mohammed Shafi Shajakhanlinvjw
authored andcommitted
mac80211: use RCU read locks for sta_info_get
this is being recently introduced by the commit a85e1d5 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>
1 parent f961e34 commit 30fa904

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎net/mac80211/mlme.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,9 +1385,11 @@ void ieee80211_beacon_connection_loss_work(struct work_struct *work)
13851385
struct sta_info *sta;
13861386

13871387
if (ifmgd->associated) {
1388+
rcu_read_lock();
13881389
sta = sta_info_get(sdata, ifmgd->bssid);
13891390
if (sta)
13901391
sta->beacon_loss_count++;
1392+
rcu_read_unlock();
13911393
}
13921394

13931395
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)

0 commit comments

Comments
 (0)