Re: (subset) [PATCH v2] leds: pwm-multicolor: Manage the multi-led node reference

From: Lee Jones

Date: Thu Nov 26 2026 - 14:04:22 EST


On Fri, 30 Oct 2026 10:05:20 +0800, Yige Jiang wrote:
> led_pwm_mc_probe() leaks the multi-led node reference on successful
> probe and if the final PWM update fails. LED registration borrows
> the node, so it must remain valid until the LED is unregistered.
>
> Register a managed put action before LED registration. Reverse devres
> order then unregisters the LED before releasing the node on unbind
> or probe failure. Drop the manual error-path put and return directly
> on probe errors, leaving the reference cleanup to devres.
>
> [...]

Applied, thanks!

[1/1] leds: pwm-multicolor: Manage the multi-led node reference
commit: 68c7c6f993cb3c2d999d843c7e732dc35d432804

--
Lee Jones [李琼斯]