mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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>
This commit is contained in:
parent
a26a5107bc
commit
f54a1baee0
|
|
@ -2008,10 +2008,10 @@ __cfg80211_bss_update(struct cfg80211_registered_device *rdev,
|
|||
return found;
|
||||
|
||||
free_ies:
|
||||
ies = (void *)rcu_dereference(tmp->pub.beacon_ies);
|
||||
ies = (void *)rcu_access_pointer(tmp->pub.beacon_ies);
|
||||
if (ies)
|
||||
kfree_rcu(ies, rcu_head);
|
||||
ies = (void *)rcu_dereference(tmp->pub.proberesp_ies);
|
||||
ies = (void *)rcu_access_pointer(tmp->pub.proberesp_ies);
|
||||
if (ies)
|
||||
kfree_rcu(ies, rcu_head);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user