Re: (subset) [PATCH v2] leds: netxbig: Fix platform device reference leak on successful probe
From: Lee Jones
Date: Wed Nov 18 2026 - 12:35:29 EST
On Sat, 07 Nov 2026 12:27:37 +0800, Wentao Liang wrote:
> of_find_device_by_node() returns the GPIO extension device with an
> elevated reference count. The error paths release it through the
> put_device label, but the success path returns directly, so the
> reference is leaked whenever the LED driver probes successfully.
>
> Release the reference right after its last use and remove the put_device
> label and the gotos leading to it.
>
> [...]
Applied, thanks!
[1/1] leds: netxbig: Fix platform device reference leak on successful probe
commit: 41ea2c75f886db9846a92e367fcb637cf45df224
--
Lee Jones [李琼斯]