Commit f86f1512 authored by Johannes Berg's avatar Johannes Berg Committed by sanglipeng
Browse files

wifi: cfg80211: silence a sparse RCU warning

stable inclusion
from stable-v5.10.155
commit 914cb94e738ba6ebb482d61567fb50bf700e4f19
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7M5F4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=914cb94e738ba6ebb482d61567fb50bf700e4f19



--------------------------------

[ Upstream commit 03c0ad4b ]

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: c90b93b5 ("wifi: cfg80211: update hidden BSSes to avoid WARN_ON")
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent c0e7716b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment