Re: (subset) [PATCH v2] Revert "leds: led-core: Fix refcount leak in of_led_get()"

From: Lee Jones
Date: Thu Jun 27 2024 - 04:09:35 EST


On Tue, 25 Jun 2024 10:34:38 +0200, Luca Ceresoli wrote:
> This reverts commit da1afe8e6099980fe1e2fd7436dca284af9d3f29.
>
> Commit 699a8c7c4bd3 ("leds: Add of_led_get() and led_put()"), introduced in
> 5.5, added of_led_get() and led_put() but missed a put_device() in
> led_put(), thus creating a leak in case the consumer device is removed.
>
> Arguably device removal was not very popular, so this went apparently
> unnoticed until 2022. In January 2023 two different patches got merged to
> fix the same bug:
>
> [...]

Applied, thanks!

[1/1] Revert "leds: led-core: Fix refcount leak in of_led_get()"
commit: 940b27161afc6ec53fc66245a4fb3518394cdc92

--
Lee Jones [李琼斯]