Re: (subset) [PATCH] leds: lp8860: fix device_node leak in lp8860_probe()

From: Lee Jones

Date: Tue Sep 22 2026 - 06:50:28 EST


On Thu, 10 Sep 2026 15:43:20 -0400, Miles Krause wrote:
> lp8860_probe() looks up the driver's single LED child node with
> of_get_next_available_child() and hands it to the LED core as
> init_data.fwnode, but never drops the reference that lookup returned:
>
> child_node = of_get_next_available_child(np, NULL);
> if (!child_node)
> return -EINVAL;
> ...
> init_data.fwnode = of_fwnode_handle(child_node);
>
> [...]

Applied, thanks!

[1/1] leds: lp8860: fix device_node leak in lp8860_probe()
commit: f9879086c4eb4b3b0f4baa80139a5720b99b229e

--
Lee Jones [李琼斯]