aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-04-12 11:25:37 +0300
committerAlexandre Torgue <[email protected]>2024-04-25 14:44:39 +0200
commite4500d7525f9223a0a46431caa6d0f2d165f05ce (patch)
tree990a5c02c8b4953a30703740ca809afa22802cea /tools/perf/scripts/python/task-analyzer.py
parent2eeb74c449e910851fa48f4868ec0edadaa28f08 (diff)
bus: stm32_firewall: fix off by one in stm32_firewall_get_firewall()
The "nb_firewall" variable is the number of elements in the firewall[] array, which is allocated in stm32_firewall_populate_bus(). So change this > comparison to >= to prevent an out of bound access. Fixes: 5c9668cfc6d7 ("firewall: introduce stm32_firewall framework") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Gatien Chevallier <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions