linux/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
..
ahb.c wifi: ath5k: Use platform_get_irq() to get the interrupt 2023-02-22 11:51:43 +02:00
ani.c
ani.h
ath5k.h
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
debug.h
desc.c
desc.h
dma.c
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
Kconfig
led.c
mac80211-ops.c wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
Makefile
pci.c
pcu.c
phy.c
qcu.c
reg.h
reset.c
rfbuffer.h
rfgain.h
rfkill.c
sysfs.c
trace.h