Files
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: [email protected]
Signed-off-by: Wentao Liang <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
2025-12-29 11:41:09 +01:00
..