summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-01-21 22:17:17 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2026-04-01 13:07:31 +0200
commitc8e9b6a55702be6c6d034e973d519c52c3848415 (patch)
tree130f1a5bf31c41d8e02833424cbdda9c0eb7e116 /drivers
parent44c28e1c52764fef6dd1c1ada3a248728812e67f (diff)
downloadlinux-next-c8e9b6a55702be6c6d034e973d519c52c3848415.tar.gz
linux-next-c8e9b6a55702be6c6d034e973d519c52c3848415.zip
pmdomain: imx: scu-pd: Fix device_node reference leak during ->probe()
When calling of_parse_phandle_with_args(), the caller is responsible to call of_node_put() to release the reference of device node. In imx_sc_pd_get_console_rsrc(), it does not release the reference. Fixes: 893cfb99734f ("firmware: imx: scu-pd: do not power off console domain") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pmdomain/imx/scu-pd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pmdomain/imx/scu-pd.c b/drivers/pmdomain/imx/scu-pd.c
index 01d465d88f60..3ec33667a308 100644
--- a/drivers/pmdomain/imx/scu-pd.c
+++ b/drivers/pmdomain/imx/scu-pd.c
@@ -326,6 +326,7 @@ static void imx_sc_pd_get_console_rsrc(void)
return;
imx_con_rsrc = specs.args[0];
+ of_node_put(specs.np);
}
static int imx_sc_get_pd_power(struct device *dev, u32 rsrc)