mirror-linux/drivers/pmdomain
Wentao Liang 73cb5f6eaf pmdomain: imx: Fix reference count leak in imx_gpc_probe()
of_get_child_by_name() returns a node pointer with refcount incremented.
Use the __free() attribute to manage the pgc_node reference, ensuring
automatic of_node_put() cleanup when pgc_node goes out of scope.

This eliminates the need for explicit error handling paths and avoids
reference count leaks.

Fixes: 721cabf6c6 ("soc: imx: move PGC handling to a new GPC driver")
Cc: stable@vger.kernel.org
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2025-12-29 11:41:09 +01:00
..
actions pmdomain: Use device_get_match_data() 2023-10-17 11:45:11 +02:00
amlogic pmdomain: amlogic: Add support for S6 S7 S7D power domains controller 2025-09-04 12:25:36 +02:00
apple pmdomain: apple: Add "apple,t8103-pmgr-pwrstate" 2025-09-18 21:30:56 +02:00
arm pmdomain: arm: scmi: Fix genpd leak on provider registration failure 2025-10-22 16:16:14 +02:00
bcm pmdomain: bcm: bcm2835-power: Prepare to support BCM2712 2025-11-19 18:06:50 +01:00
imx pmdomain: imx: Fix reference count leak in imx_gpc_probe() 2025-12-29 11:41:09 +01:00
marvell pmdomain: marvell: Add PXA1908 power domains 2025-09-17 16:13:19 +02:00
mediatek pmdomain: mtk-pm-domains: Fix spinlock recursion fix in probe 2025-12-29 11:41:09 +01:00
qcom pmdomain: qcom: rpmhpd: Add RPMh power domain support for Kaanapali 2025-11-19 18:06:49 +01:00
renesas pmdomain: renesas: rmobile-sysc: Don't keep unused PM domains powered-on 2025-09-11 12:36:55 +02:00
rockchip pmdomain: rockchip: Add support for RV1126B 2025-11-19 18:06:50 +01:00
samsung pmdomain: samsung: Rework legacy splash-screen handover workaround 2025-11-04 17:16:05 +01:00
st pmdomain: st: Add a Kconfig option for the ux500 power domain 2023-10-04 23:41:56 +02:00
starfive pmdomain: starfive: Update prefixes for AON power domain 2023-10-04 23:41:57 +02:00
sunxi pmdomain: sunxi: sun20i-ppu: change to tristate and enable for ARCH_SUNXI 2025-07-15 16:04:55 +02:00
tegra pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag 2025-11-24 11:14:01 +01:00
thead pmdomain: thead: Fix error pointer vs NULL bug in th1520_pd_reboot_init() 2025-09-26 14:50:20 +02:00
ti pmdomain: ti-sci: Set PD on/off state according to the HW state 2025-09-12 14:27:15 +02:00
xilinx firmware/pmdomain: xilinx: Move ->sync_state() support to firmware driver 2025-07-09 13:29:25 +02:00
Kconfig pmdomain: marvell: Add PXA1908 power domains 2025-09-17 16:13:19 +02:00
Makefile pmdomain: marvell: Add PXA1908 power domains 2025-09-17 16:13:19 +02:00
core.c pmdomain core: 2025-12-04 13:50:39 -08:00
governor.c pmdomain core: 2025-12-04 13:50:39 -08:00