OSDN Git Service

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)
commit03c0ad4b06c3566de624b4f4b78ac1a5d1e4c8e7
treecabbfb2f18a90772cc1724d134cc46201a006927
parent66063033f77e10b985258126a97573f84bb8d3b4
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: c90b93b5b782 ("wifi: cfg80211: update hidden BSSes to avoid WARN_ON")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c