summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc3-topology.c
diff options
context:
space:
mode:
authorLiang He <windhl@126.com>2022-09-15 06:11:21 +0300
committerStephen Boyd <sboyd@kernel.org>2022-10-01 03:14:32 +0300
commit058a3996b888ab60eb1857fb4fd28f1b89a9a95a (patch)
tree865dca4d5001f1ec46f92565b0d4875ee48028b7 /sound/soc/sof/ipc3-topology.c
parent4e343bafe03ff68a62f48f8235cf98f2c685468b (diff)
downloadlinux-058a3996b888ab60eb1857fb4fd28f1b89a9a95a.tar.xz
clk: ti: Balance of_node_get() calls for of_find_node_by_name()
In ti_find_clock_provider(), of_find_node_by_name() will call of_node_put() for the 'from' argument, possibly putting the node one too many times. Let's maintain the of_node_get() from the previous search and only put when we're exiting the function early. This should avoid a misbalanced reference count on the node. Fixes: 51f661ef9a10 ("clk: ti: Add ti_find_clock_provider() to use clock-output-names") Signed-off-by: Liang He <windhl@126.com> Link: https://lore.kernel.org/r/20220915031121.4003589-1-windhl@126.com [sboyd@kernel.org: Rewrite commit text, maintain reference instead of get again] Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc3-topology.c')
0 files changed, 0 insertions, 0 deletions