Re: [PATCH v2 12/13] leds: rt8515: Put fwnode in any case during ->probe()
From: Linus Walleij
Date: Tue Jun 01 2021 - 06:06:20 EST
On Sat, May 29, 2021 at 1:19 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:
> fwnode_get_next_available_child_node() bumps a reference counting of
> a returned variable. We have to balance it whenever we return to
> the caller.
>
> Fixes: e1c6edcbea13 ("leds: rt8515: Add Richtek RT8515 LED driver")
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij