mirror-linux/drivers/net/wireless/ath
Kalle Valo feafe59c89 wifi: ath11k: use RCU when accessing struct inet6_dev::ac_list
Commit c3718936ec ("ipv6: anycast: complete RCU handling of struct
ifacaddr6") converted struct inet6_dev::ac_list to use RCU but missed that
ath11k also accesses this list. Now sparse warns:

drivers/net/wireless/ath/ath11k/mac.c:9145:21: warning: incorrect type in assignment (different address spaces)
drivers/net/wireless/ath/ath11k/mac.c:9145:21:    expected struct ifacaddr6 *ifaca6
drivers/net/wireless/ath/ath11k/mac.c:9145:21:    got struct ifacaddr6 [noderef] __rcu *ac_list
drivers/net/wireless/ath/ath11k/mac.c:9145:53: warning: incorrect type in assignment (different address spaces)
drivers/net/wireless/ath/ath11k/mac.c:9145:53:    expected struct ifacaddr6 *ifaca6
drivers/net/wireless/ath/ath11k/mac.c:9145:53:    got struct ifacaddr6 [noderef] __rcu *aca_next

Fix it by using rtnl_dereference(). Also add a note that read_lock_bh() calls
rcu_read_lock() which I was not aware of.

Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.37

Fixes: c3718936ec ("ipv6: anycast: complete RCU handling of struct ifacaddr6")
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240411165516.4070649-2-kvalo@kernel.org
2024-04-16 18:25:20 +03:00
..
ar5523 wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath5k wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
ath6kl wifi: cfg80211/mac80211: move puncturing into chandef 2024-02-08 15:00:39 +01:00
ath9k ath.git patches for v6.9 2024-02-22 12:41:45 +02:00
ath10k wifi: mac80211: check beacon countdown is complete on per link basis 2024-02-21 15:19:03 +01:00
ath11k wifi: ath11k: use RCU when accessing struct inet6_dev::ac_list 2024-04-16 18:25:20 +03:00
ath12k wifi: ath12k: fix license in p2p.c and p2p.h 2024-02-28 16:09:29 +02:00
carl9170 ath.git patches for v6.9 2024-02-22 12:41:45 +02:00
wcn36xx wifi: mac80211: simplify non-chanctx drivers 2024-02-08 12:58:32 +01:00
wil6210
Kconfig
Makefile
ath.h
debug.c
dfs_pattern_detector.c
dfs_pattern_detector.h
dfs_pri_detector.c
dfs_pri_detector.h
hw.c
key.c
main.c
reg.h
regd.c
regd.h
regd_common.h
spectral_common.h
trace.c
trace.h