mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-11 15:46:40 +02:00
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: 893cfb9973 ("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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user