wifi: ath12k: Off by one in ath12k_wmi_process_csa_switch_count_event()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 6 Dec 2024 12:52:29 +0000 (15:52 +0300)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Wed, 11 Dec 2024 17:18:54 +0000 (09:18 -0800)
commit58fa8109fa8dae2947567e8f56dbd55ad81bc35c
treede6368f684aa7e16f47c99c8f9fc43fbabc24196
parent02f41c8aa643b0d329ee9fa3f3341919bf86b759
wifi: ath12k: Off by one in ath12k_wmi_process_csa_switch_count_event()

The ahvif->vif->link_conf[] array has IEEE80211_MLD_MAX_NUM_LINKS elements
so this should be >= instead of > to avoid an out of bounds access.

Fixes: 3952657848c0 ("wifi: ath12k: Use mac80211 vif's link_conf instead of bss_conf")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/755becb1-819b-484d-8fac-9a2db53ced1b@stanley.mountain
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/wmi.c