]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 21 Oct 2022 10:34:46 +0000 (12:34 +0200)
commitf86387dfb108d1d75a51f5bb9ca326b0cda1b929
treecabbfb2f18a90772cc1724d134cc46201a006927
parent9d975154633d8e0b334df0756313d4afa002de52
wifi: cfg80211: silence a sparse RCU warning

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>
net/wireless/scan.c