Re: [PATCH] pinctrl: call of_node_put() when breaking out of for_each_available_child_of_node()
From: Linus Walleij
Date: Tue Nov 22 2022 - 03:37:06 EST
On Tue, Nov 22, 2022 at 8:34 AM Peng Zhang <zhangpeng362@xxxxxxxxxx> wrote:
> From: ZhangPeng <zhangpeng362@xxxxxxxxxx>
>
> Since for_each_available_child_of_node() will increase the refcount of
> node, we need to call of_node_put() manually when breaking out of the
> iteration.
>
> Fixes: d4c34d09ab03 ("pinctrl: Add RISC-V Canaan Kendryte K210 FPIOA driver")
> Signed-off-by: ZhangPeng <zhangpeng362@xxxxxxxxxx>
Patch applied.
Yours,
Linus Walleij