From: Lee Jones <lee@kernel.org>
To: Lee Jones <lee@kernel.org>, Pavel Machek <pavel@kernel.org>,
Markus.Elfring@web.de, Haotian Zhang <vulab@iscas.ac.cn>
Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: (subset) [PATCH v3] leds: netxbig: fix GPIO descriptor leak in error paths
Date: Thu, 13 Nov 2025 13:52:29 +0000 [thread overview]
Message-ID: <176304194952.1492848.1003570657764262540.b4-ty@kernel.org> (raw)
In-Reply-To: <20251031021620.781-1-vulab@iscas.ac.cn>
On Fri, 31 Oct 2025 10:16:20 +0800, Haotian Zhang wrote:
> The function netxbig_gpio_ext_get() acquires GPIO descriptors but
> fails to release them when errors occur mid-way through initialization.
> The cleanup callback registered by devm_add_action_or_reset() only
> runs on success, leaving acquired GPIOs leaked on error paths.
>
> Add goto-based error handling to release all acquired GPIOs before
> returning errors.
>
> [...]
Applied, thanks!
[1/1] leds: netxbig: fix GPIO descriptor leak in error paths
commit: 03865dd8af52eb16c38062df2ed30a91b604780e
--
Lee Jones [李琼斯]
next prev parent reply other threads:[~2025-11-13 13:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 8:21 [PATCH] " Haotian Zhang
2025-10-29 12:55 ` Markus Elfring
2025-10-30 2:53 ` [PATCH v2] " Haotian Zhang
2025-10-30 10:00 ` Markus Elfring
2025-10-30 18:06 ` kernel test robot
2025-10-30 22:29 ` kernel test robot
2025-10-31 2:16 ` [PATCH v3] " Haotian Zhang
2025-11-13 13:52 ` Lee Jones [this message]
2025-11-18 20:01 ` Andy Shevchenko
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=176304194952.1492848.1003570657764262540.b4-ty@kernel.org \
--to=lee@kernel.org \
--cc=Markus.Elfring@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@kernel.org \
--cc=vulab@iscas.ac.cn \
/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®