aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r--net/mac80211/sta_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index f0d3b483dabd..b197136aea2c 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -945,7 +945,8 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata,
945 struct sta_info *sta, *tmp; 945 struct sta_info *sta, *tmp;
946 946
947 mutex_lock(&local->sta_mtx); 947 mutex_lock(&local->sta_mtx);
948 list_for_each_entry_safe(sta, tmp, &local->sta_list, list) 948
949 list_for_each_entry_safe(sta, tmp, &local->sta_list, list) {
949 if (sdata != sta->sdata) 950 if (sdata != sta->sdata)
950 continue; 951 continue;
951 952
@@ -956,6 +957,8 @@ void ieee80211_sta_expire(struct ieee80211_sub_if_data *sdata,
956#endif 957#endif
957 WARN_ON(__sta_info_destroy(sta)); 958 WARN_ON(__sta_info_destroy(sta));
958 } 959 }
960 }
961
959 mutex_unlock(&local->sta_mtx); 962 mutex_unlock(&local->sta_mtx);
960} 963}
961 964