OpenCloudOS-Kernel/drivers/net/wireless/ath/ath5k
Dan Carpenter 4c856ee12d wifi: ath5k: fix an off by one check in ath5k_eeprom_read_freq_list()
This loop checks that i < max at the start of loop but then it does
i++ which could put it past the end of the array.  It's harmless to
check again and prevent a potential out of bounds.

Fixes: 1048643ea9 ("ath5k: Clean up eeprom parsing and add missing calibration data")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/Y+D9hPQrHfWBJhXz@kili
2023-02-22 11:56:30 +02:00
..
Kconfig ath5k: fix building with LEDS=m 2021-09-24 14:08:10 +03:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
ahb.c wifi: ath5k: Use platform_get_irq() to get the interrupt 2023-02-22 11:51:43 +02:00
ani.c ath5k: remove conversion to bool in ath5k_ani_calibration() 2020-04-28 12:11:27 +03:00
ani.h
ath5k.h ath5k: remove unused ah_txq_isr_txurn member from struct ath5k_hw 2022-01-17 14:38:26 +02:00
attach.c
base.c wifi: ath5k: fix repeated words in comments 2022-07-18 13:03:43 +03:00
base.h
caps.c
debug.c ath5k: convert to use DEFINE_SEQ_ATTRIBUTE macro 2020-09-22 10:46:21 +03:00
debug.h
desc.c
desc.h
dma.c ath5k: fix ah_txq_isr_txok_all setting 2022-01-17 14:38:27 +02:00
eeprom.c wifi: ath5k: fix an off by one check in ath5k_eeprom_read_freq_list() 2023-02-22 11:56:30 +02:00
eeprom.h
gpio.c
initvals.c
led.c ath5k: fix building with LEDS=m 2021-09-24 14:08:10 +03:00
mac80211-ops.c wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
pci.c ath: switch from 'pci_' to 'dma_' API 2021-07-02 14:39:59 +03:00
pcu.c ath5k: Fix wrong function name in comments 2021-06-15 17:01:24 +03:00
phy.c ath5k: replace ternary operator with min() 2022-05-22 15:29:42 +03:00
qcu.c
reg.h
reset.c ath5k: Use fallthrough pseudo-keyword 2020-08-17 13:19:33 +03:00
rfbuffer.h ath5k: Replace HTTP links with HTTPS ones 2020-08-14 18:06:36 +03:00
rfgain.h
rfkill.c ath5k: convert tasklets to use new tasklet_setup() API 2020-08-27 13:15:25 +03:00
sysfs.c ath5k: replace snprintf in show functions with sysfs_emit 2021-10-18 15:33:42 +03:00
trace.h