Re: (subset) [PATCH v3] leds: netxbig: fix GPIO descriptor leak in error paths

From: Lee Jones

Date: Thu Nov 13 2025 - 08:52:31 EST


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 [李琼斯]