Messages in this thread | | | From | Linus Walleij <> | Date | Fri, 25 Nov 2022 10:49:56 +0100 | Subject | Re: [PATCH] pinctrl: pinconf-generic: add missing of_node_put() in pinconf_generic_dt_node_to_map() |
| |
On Fri, Nov 25, 2022 at 8:02 AM Peng Zhang <zhangpeng362@huawei.com> wrote:
> From: ZhangPeng <zhangpeng362@huawei.com> > > 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@huawei.com>
Good catch! Patch applied.
Yours, Linus Walleij
| |