[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <173037839477.7100.6092134366756840133.b4-ty@linaro.org>
Date: Thu, 31 Oct 2024 13:39:56 +0100
From: Bartosz Golaszewski <brgl@...ev.pl>
To: Suraj Sonawane <surajsonawane0215@...il.com>
Cc: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>,
brgl@...ev.pl,
linus.walleij@...aro.org,
linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] gpio: fix uninit-value in swnode_find_gpio
From: Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
On Sat, 26 Oct 2024 14:36:42 +0530, Suraj Sonawane wrote:
> Fix an issue detected by the Smatch tool:
>
> drivers/gpio/gpiolib-swnode.c:78 swnode_find_gpio() error:
> uninitialized symbol 'ret'.
>
> The issue occurs because the 'ret' variable may be used without
> initialization if the for_each_gpio_property_name loop does not run.
> This could lead to returning an undefined value, causing unpredictable
> behavior.
>
> [...]
Applied, thanks!
[1/1] gpio: fix uninit-value in swnode_find_gpio
commit: a14968aea637bbe38a99e6089944e4ad8e6c49e5
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@...aro.org>
Powered by blists - more mailing lists