Re: [PATCH] led: qcom-lpg: Fix resource leaks in for_each_available_child_of_node() loops
From: Lee Jones
Date: Thu May 25 2023 - 08:02:33 EST
On Thu, 25 May 2023, Lu Hongfei wrote:
> for_each_available_child_of_node in lpg_probe and lpg_add_led need
> to execute of_node_put before return. this patch could fix this bug.
>
> Signed-off-by: Lu Hongfei <luhongfei@xxxxxxxx>
> ---
> drivers/leds/rgb/leds-qcom-lpg.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
> mode change 100644 => 100755 drivers/leds/rgb/leds-qcom-lpg.c
I made a few tweaks to the commit messaged.
Applied, thanks
--
Lee Jones [李琼斯]