Thread (6 messages) 6 messages, 4 authors, 2024-11-08

Re: [PATCH] acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()

From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2024-11-08 16:49:42
Also in: linux-acpi, lkml

On Tue, 27 Aug 2024 13:12:39 +0300, Aleksandr Mishin wrote:
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.

[...]
Applied to arm64 (for-next/misc), thanks!

[1/1] acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()
      https://git.kernel.org/arm64/c/1a9de2f6fda6

-- 
Catalin

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help