]> git.apps.os.sepia.ceph.com Git - ceph-client.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)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 31 Oct 2024 10:30:57 +0000 (11:30 +0100)
commitafc2331ef81657493c074592c409dac7c3cb8ccc
tree50799e7798ed47ababb1eadb0a690b24c5b1be1a
parentcc8eeff3e8b61d24689d9f320533f716747d8ee6
pmdomain: ti-sci: Add missing of_node_put() for args.np

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>
drivers/pmdomain/ti/ti_sci_pm_domains.c