mac80211: sta_info: Add lockdep condition for RCU list usage
authorMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Thu, 9 Apr 2020 08:29:06 +0000 (13:59 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 24 Apr 2020 09:31:20 +0000 (11:31 +0200)
commit8ca47eb9f9e4e10e7e7fa695731a88941732c38d
treed7ef27ab20d288e126be9cec3cafb816569ae223
parent6cb5f3ea4654faf8c28b901266e960b1a4787b26
mac80211: sta_info: Add lockdep condition for RCU list usage

The function sta_info_get_by_idx() uses RCU list primitive.
It is called with  local->sta_mtx held from mac80211/cfg.c.
Add lockdep expression to avoid any false positive RCU list warnings.

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