Re: [PATCH v1 1/1] pinctrl: microchip-sgpio: Put fwnode in error case during ->probe()

From: Linus Walleij
Date: Fri Jun 18 2021 - 05:19:29 EST


On Sun, Jun 6, 2021 at 9:21 PM Andy Shevchenko
<andy.shevchenko@xxxxxxxxx> wrote:

> device_for_each_child_node() bumps a reference counting of a returned variable.
> We have to balance it whenever we return to the caller.
>
> Fixes: 7e5ea974e61c ("pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO")
> Cc: Lars Povlsen <lars.povlsen@xxxxxxxxxxxxx>
> Signed-off-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>

Patch applied for fixes, I got a bit snowed under because of
patch-spot activity.

Yours,
Linus Walleij