mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Suraj Sonawane <surajsonawane0215@gmail.com>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
	linus.walleij@linaro.org, linux-gpio@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] gpio: fix uninit-value in swnode_find_gpio
Date: Fri, 1 Nov 2024 16:07:58 +0530	[thread overview]
Message-ID: <f2fc8479-6b45-4fb6-904d-399317d7e74d@gmail.com> (raw)
In-Reply-To: <173037839477.7100.6092134366756840133.b4-ty@linaro.org>

On 31/10/24 18:09, Bartosz Golaszewski wrote:
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.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,
Thank you for applying this patch.

      reply	other threads:[~2024-11-01 10:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-22 19:46 [PATCH] " Suraj Sonawane
2024-10-22 19:54 ` [PATCH v2] " Suraj Sonawane
2024-10-23  7:30   ` Bartosz Golaszewski
2024-10-26  9:06 ` [PATCH v3] " Suraj Sonawane
2024-10-31 12:39   ` Bartosz Golaszewski
2024-11-01 10:37     ` Suraj Sonawane [this message]

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=f2fc8479-6b45-4fb6-904d-399317d7e74d@gmail.com \
    --to=surajsonawane0215@gmail.com \
    --cc=bartosz.golaszewski@linaro.org \
    --cc=brgl@bgdev.pl \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®