Skip to content
Snippets Groups Projects
Commit 3359f8d5 authored by ZhangPeng's avatar ZhangPeng Committed by Greg Kroah-Hartman
Browse files

pinctrl: pinconf-generic: add missing of_node_put()


[ Upstream commit 5ead9328 ]

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: c7289500 ("pinctrl: pinconf-generic: scan also referenced phandle node")
Signed-off-by: default avatarZhangPeng <zhangpeng362@huawei.com>
Link: https://lore.kernel.org/r/20221125070156.3535855-1-zhangpeng362@huawei.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ffd53b78
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment