diff options
author | Aleksandr Mishin <[email protected]> | 2024-08-27 13:12:39 +0300 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2024-11-08 14:25:16 +0000 |
commit | 1a9de2f6fda69d5f105dd8af776856a66abdaa64 (patch) | |
tree | cef0fce169644426c275546ad739ab730d4b621f /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 340fd66c856651d8c1d29f392dd26ad674d2db0e (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/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions