Re: [PATCH] pinctrl: pinconf-generic: add missing of_node_put() in pinconf_generic_dt_node_to_map()

From: Linus Walleij
Date: Fri Nov 25 2022 - 04:52:35 EST


On Fri, Nov 25, 2022 at 8:02 AM Peng Zhang <zhangpeng362@xxxxxxxxxx> wrote:

> From: ZhangPeng <zhangpeng362@xxxxxxxxxx>
>
> of_node_put() needs to be called when jumping out of the loop, since
> for_each_available_child_of_node() will increase the refcount of node.
>
> Fixes: c7289500e29d ("pinctrl: pinconf-generic: scan also referenced phandle node")
> Signed-off-by: ZhangPeng <zhangpeng362@xxxxxxxxxx>

Good catch!
Patch applied.

Yours,
Linus Walleij