]> git.ipfire.org Git - thirdparty/linux.git/commit
pmdomain: imx: scu-pd: Fix device_node reference leak during ->probe()
authorFelix Gu <ustc.gu@gmail.com>
Wed, 21 Jan 2026 14:17:17 +0000 (22:17 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Apr 2026 11:07:31 +0000 (13:07 +0200)
commitc8e9b6a55702be6c6d034e973d519c52c3848415
tree130f1a5bf31c41d8e02833424cbdda9c0eb7e116
parent44c28e1c52764fef6dd1c1ada3a248728812e67f
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>
drivers/pmdomain/imx/scu-pd.c