]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pmdomain: ti-sci: Add missing of_node_put() for args.np
authorZhang Zekun <zhangzekun11@huawei.com>
Thu, 24 Oct 2024 03:04:41 +0000 (11:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:48 +0000 (19:50 +0100)
commit6a6908aa03c96f05552a261eadd8c17fbb995234
treec3eb05cc50e229fd08541246d25140efa7523e7c
parent4869448ba8cc224a6f6753b19e5b45321d60a1b9
pmdomain: ti-sci: Add missing of_node_put() for args.np

[ Upstream commit afc2331ef81657493c074592c409dac7c3cb8ccc ]

of_parse_phandle_with_args() needs to call of_node_put() to decrement
the refcount of args.np. So, Add the missing of_node_put() in the loop.

Fixes: efa5c01cd7ee ("soc: ti: ti_sci_pm_domains: switch to use multiple genpds instead of one")
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Message-ID: <20241024030442.119506-2-zhangzekun11@huawei.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/ti/ti_sci_pm_domains.c