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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2020 08:31:28 +0000 (10:31 +0200)
commitfd2c9e605269be4d4eb936973c058c5d599b2665
tree83485ece230f5c6066a7de0df00ab1ecd5812ce8
parent07fea3d3ef880687c7002377b264bb0f62145542
mac80211: sta_info: Add lockdep condition for RCU list usage

[ Upstream commit 8ca47eb9f9e4e10e7e7fa695731a88941732c38d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/sta_info.c