]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: ti: omap_prm: Fix a reference leak on device node
authorFelix Gu <gu_0233@qq.com>
Fri, 16 Jan 2026 12:27:47 +0000 (20:27 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Apr 2026 11:07:31 +0000 (13:07 +0200)
commit44c28e1c52764fef6dd1c1ada3a248728812e67f
tree7c020f62cecee9ba96b246a161ac2e9c810806c7
parent6d1fdcfeb026bc3efbe2f06bf2204152b21c401e
pmdomain: ti: omap_prm: Fix a reference leak on device node

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In omap_prm_domain_attach_dev, it does not release the reference.

Fixes: 58cbff023bfa ("soc: ti: omap-prm: Add basic power domain support")
Signed-off-by: Felix Gu <gu_0233@qq.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/ti/omap_prm.c