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: 1048643ea94d ("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
..
2022-01-17 14:38:27 +02:00
2021-09-24 14:08:10 +03:00
2021-09-24 14:08:10 +03:00
2019-06-26 18:11:06 +03:00
2021-07-02 14:39:59 +03:00
2020-08-17 13:19:33 +03:00