summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_pathtbl.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2023-09-11 11:57:52 +0200
committerJohannes Berg <johannes.berg@intel.com>2023-09-11 12:04:49 +0200
commit5ea82df1f50e42416d0a8a7c42d37cc1df1545fe (patch)
tree08182668a9baa6043caceeda443b24d66c2d5fa1 /net/mac80211/mesh_pathtbl.c
parente8c1841278a78362f7034f3de415096ddb19f097 (diff)
downloadlinux-stable-5ea82df1f50e42416d0a8a7c42d37cc1df1545fe.tar.gz
linux-stable-5ea82df1f50e42416d0a8a7c42d37cc1df1545fe.tar.bz2
linux-stable-5ea82df1f50e42416d0a8a7c42d37cc1df1545fe.zip
wifi: mac80211: fix RCU usage warning in mesh fast-xmit
In mesh_fast_tx_flush_addr() we already hold the lock, so don't need additional hashtable RCU protection. Use the rhashtable_lookup_fast() variant to avoid RCU protection warnings. Fixes: d5edb9ae8d56 ("wifi: mac80211: mesh fast xmit support") Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh_pathtbl.c')
-rw-r--r--net/mac80211/mesh_pathtbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index d32e304eeb4b..3e52aaa57b1f 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -648,7 +648,7 @@ void mesh_fast_tx_flush_addr(struct ieee80211_sub_if_data *sdata,
cache = &sdata->u.mesh.tx_cache;
spin_lock_bh(&cache->walk_lock);
- entry = rhashtable_lookup(&cache->rht, addr, fast_tx_rht_params);
+ entry = rhashtable_lookup_fast(&cache->rht, addr, fast_tx_rht_params);
if (entry)
mesh_fast_tx_entry_free(cache, entry);
spin_unlock_bh(&cache->walk_lock);