]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: cfg80211: silence a sparse RCU warning
authorJohannes Berg <johannes.berg@intel.com>
Thu, 13 Oct 2022 17:41:51 +0000 (19:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:04 +0000 (17:42 +0100)
commitb1afb2afb33a18e7b80cf2af9eb7af69b006fae9
treef97496f8bbc4293719ec0fc01e33e7646de848cb
parentafccb2e69d97cbb7a8cdd642826f80d6dfee1fda
wifi: cfg80211: silence a sparse RCU warning

[ Upstream commit f86387dfb108d1d75a51f5bb9ca326b0cda1b929 ]

All we're going to do with this pointer is assign it to
another __rcu pointer, but sparse can't see that, so
use rcu_access_pointer() to silence the warning here.

Fixes: cede852d4c24 ("wifi: cfg80211: update hidden BSSes to avoid WARN_ON")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/scan.c