[PATCH] pinctrl: call of_node_put() when breaking out of for_each_available_child_of_node()

Linus Walleij linus.walleij at linaro.org
Tue Nov 22 00:36:32 PST 2022


On Tue, Nov 22, 2022 at 8:34 AM Peng Zhang <zhangpeng362 at huawei.com> wrote:

> From: ZhangPeng <zhangpeng362 at huawei.com>
>
> 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 at huawei.com>

Patch applied.

Yours,
Linus Walleij



More information about the linux-riscv mailing list