]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: rx: avoid RCU list traversal under mutex
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Sun, 23 Feb 2020 14:33:02 +0000 (20:03 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 24 Feb 2020 09:42:38 +0000 (10:42 +0100)
commit3afb5b82be142d75d595d06d7d3b3f0f1ce24fd9
tree5104cb3a119b29357c683b521d57d33e76512c65
parent2e8e778051d1c4e08a5e6b6f4c8502772d8be681
mac80211: rx: avoid RCU list traversal under mutex

local->sta_mtx is held in __ieee80211_check_fast_rx_iface().
No need to use list_for_each_entry_rcu() as it also requires
a cond argument to avoid false lockdep warnings when not used in
RCU read-side section (with CONFIG_PROVE_RCU_LIST).
Therefore use list_for_each_entry();

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Link: https://lore.kernel.org/r/20200223143302.15390-1-madhuparnabhowmik10@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c