aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-02-06 16:15:48 +0300
committerKalle Valo <[email protected]>2023-02-22 11:56:30 +0200
commit4c856ee12df85aabd437c3836ed9f68d94268358 (patch)
treed51cb5eaf3758505e147281371b41a2d2b3f5afa /tools/perf/scripts/python/sctop.py
parent95c95251d0547b46d6571e4fbd51b42865c15a4a (diff)
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 <[email protected]> Reviewed-by: Luis Chamberlain <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/Y+D9hPQrHfWBJhXz@kili
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions