[PATCH] boot: bootflow: Ensure sel_id is initialised before use
Tom Rini
trini at konsulko.com
Wed Jul 9 17:50:46 CEST 2025
On Mon, Jun 30, 2025 at 02:25:44PM +0100, Andrew Goodbody wrote:
> sel_id is only assigned to in the case of EXPOACT_SELECT, anything
> else will leave sel_id uninitialised. Initialise it on declaration
> to ensure that it is always valid.
>
> This issue was found with Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
> ---
> boot/bootflow_menu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Can you please rebase this on current master? Thanks.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250709/451aaf61/attachment.sig>
More information about the U-Boot
mailing list