wifi: cfg80211: Avoid RCU debug splat in __cfg80211_bss_update error paths
authorVeerendranath Jakkam <quic_vjakkam@quicinc.com>
Wed, 4 Sep 2024 14:20:21 +0000 (19:50 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 6 Sep 2024 10:55:43 +0000 (12:55 +0200)
commitf54a1baee098170b13b624ca5ed2afdb4d29edbc
treeeb229853b14b24bd5af394c922a4697397aa0d49
parenta26a5107bc52922cf5f67361e307ad66547b51c7
wifi: cfg80211: Avoid RCU debug splat in __cfg80211_bss_update error paths

Replace rcu_dereference() with rcu_access_pointer() since we already
hold the lock and own the 'tmp' at this point. This is needed to avoid
suspicious rcu_dereference_check warnings in__cfg80211_bss_update error
paths.

Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
Link: https://patch.msgid.link/20240904142021.3887360-1-quic_vjakkam@quicinc.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c