aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sctop.py
diff options
context:
space:
mode:
authorAleksandr Mishin <[email protected]>2024-08-27 13:12:39 +0300
committerCatalin Marinas <[email protected]>2024-11-08 14:25:16 +0000
commit1a9de2f6fda69d5f105dd8af776856a66abdaa64 (patch)
treecef0fce169644426c275546ad739ab730d4b621f /tools/perf/scripts/python/sctop.py
parent340fd66c856651d8c1d29f392dd26ad674d2db0e (diff)
acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()
In case of error in gtdt_parse_timer_block() invalid 'gtdt_frame' will be used in 'do {} while (i-- >= 0 && gtdt_frame--);' statement block because do{} block will be executed even if 'i == 0'. Adjust error handling procedure by replacing 'i-- >= 0' with 'i-- > 0'. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: a712c3ed9b8a ("acpi/arm64: Add memory-mapped timer support in GTDT driver") Signed-off-by: Aleksandr Mishin <[email protected]> Acked-by: Hanjun Guo <[email protected]> Acked-by: Sudeep Holla <[email protected]> Acked-by: Aleksandr Mishin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions