diff options
author | David S. Miller <davem@davemloft.net> | 2020-04-24 13:17:01 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-24 13:17:01 -0700 |
commit | c651b461b55b82029f1e78e9430bde1a0d7ec5af (patch) | |
tree | cd2e94423877e6024e00c1e4ff0e661e17361db0 /net/mac80211/sta_info.c | |
parent | 0303b3a168080934a370a570ba162072139eedbe (diff) | |
parent | 8ca47eb9f9e4e10e7e7fa695731a88941732c38d (diff) | |
download | linux-stable-c651b461b55b82029f1e78e9430bde1a0d7ec5af.tar.gz linux-stable-c651b461b55b82029f1e78e9430bde1a0d7ec5af.tar.bz2 linux-stable-c651b461b55b82029f1e78e9430bde1a0d7ec5af.zip |
Merge tag 'mac80211-for-net-2020-04-24' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
Johannes Berg says:
====================
Just three changes:
* fix a wrong GFP_KERNEL in hwsim
* fix the debugfs mess after the mac80211 registration race fix
* suppress false-positive RCU list lockdep warnings
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index f8d5c2515829..cd8487bc6fc2 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c @@ -231,7 +231,8 @@ struct sta_info *sta_info_get_by_idx(struct ieee80211_sub_if_data *sdata, struct sta_info *sta; int i = 0; - list_for_each_entry_rcu(sta, &local->sta_list, list) { + list_for_each_entry_rcu(sta, &local->sta_list, list, + lockdep_is_held(&local->sta_mtx)) { if (sdata != sta->sdata) continue; if (i < idx) { |