Commit 11104460 authored by Clément Léger's avatar Clément Léger Committed by sanglipeng
Browse files

clk: add missing of_node_put() in "assigned-clocks" property parsing

stable inclusion
from stable-v5.10.180
commit ac7f79ee11c3e965d88fe66bfedaa4a52b624262
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ac7f79ee11c3e965d88fe66bfedaa4a52b624262



--------------------------------

[ Upstream commit 27a6e1b0 ]

When returning from of_parse_phandle_with_args(), the np member of the
of_phandle_args structure should be put after usage. Add missing
of_node_put() calls in both __set_clk_parents() and __set_clk_rates().

Fixes: 86be408b ("clk: Support for clock parents and rates assigned from device tree")
Signed-off-by: default avatarClément Léger <clement.leger@bootlin.com>
Link: https://lore.kernel.org/r/20230131083227.10990-1-clement.leger@bootlin.com


Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 84a19a25
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment