linux/drivers/pmdomain
Joe Hattori 66e533f0b2 pmdomain: imx: gpcv2: fix an OF node reference leak in imx_gpcv2_probe()
[ Upstream commit 469c0682e0 ]

imx_gpcv2_probe() leaks an OF node reference obtained by
of_get_child_by_name(). Fix it by declaring the device node with the
__free(device_node) cleanup construct.

This bug was found by an experimental static analysis tool that I am
developing.

Fixes: 03aa12629f ("soc: imx: Add GPCv2 power gating driver")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Cc: stable@vger.kernel.org
Message-ID: <20241215030159.1526624-1-joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-01-17 13:36:25 +01:00
..
actions pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
amlogic pmdomain: amlogic: Fix mask for the second NNA mem PD domain 2023-11-28 17:20:00 +00:00
apple pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
bcm pmdomain: bcm: bcm2835-power: check if the ASB register is equal to enable 2023-11-28 17:19:59 +00:00
imx pmdomain: imx: gpcv2: fix an OF node reference leak in imx_gpcv2_probe() 2025-01-17 13:36:25 +01:00
mediatek pmdomain: mediatek: fix race conditions with genpd 2024-02-23 09:25:07 +01:00
qcom pmdomain: qcom: rpmhpd: Skip retention level for Power Domains 2024-07-18 13:21:22 +02:00
renesas pmdomain: renesas: r8a77980-sysc: CR7 must be always on 2024-02-23 09:25:15 +01:00
rockchip pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
samsung pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
st pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
starfive pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
sunxi pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
tegra pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
ti pmdomain: ti-sci: Add missing of_node_put() for args.np 2024-12-09 10:31:56 +01:00
xilinx pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00
Makefile pmdomain: Rename the genpd subsystem to pmdomain 2023-09-13 11:09:21 +02:00