From: Sudeep Holla <sudeep.holla@arm.com>
To: Aleksandr Mishin <amishin@t-argos.ru>
Cc: Fu Wei <fu.wei@linaro.org>,
Lorenzo Pieralisi <lpieralisi@kernel.org>,
Hanjun Guo <guohanjun@huawei.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>, Mark Rutland <mark.rutland@arm.com>,
<linux-acpi@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <lvc-project@linuxtesting.org>
Subject: Re: [PATCH] acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block()
Date: Thu, 29 Aug 2024 17:17:44 +0100 [thread overview]
Message-ID: <ZtCfKEIfJW7X8UWg@bogus> (raw)
In-Reply-To: <20240827101239.22020-1-amishin@t-argos.ru>
On Tue, Aug 27, 2024 at 01:12:39PM +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.
>
(For some reason I don't see the original email in my inbox, might have
got blocked 🙁). Anyways LGTM,
Acked-by: Aleksandr Mishin <amishin@t-argos.ru>
--
Regards,
Sudeep
next prev parent reply other threads:[~2024-08-29 16:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 10:12 [PATCH] acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block() Aleksandr Mishin
2024-08-29 13:52 ` Hanjun Guo
2024-08-29 16:17 ` Sudeep Holla [this message]
2024-08-29 16:24 ` Sudeep Holla
2024-11-08 3:52 ` Hanjun Guo
2024-11-08 16:49 ` Catalin Marinas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZtCfKEIfJW7X8UWg@bogus \
--to=sudeep.holla@arm.com \
--cc=amishin@t-argos.ru \
--cc=fu.wei@linaro.org \
--cc=guohanjun@huawei.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=lvc-project@linuxtesting.org \
--cc=mark.rutland@arm.com \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox