[PATCH] pmdomain: imx: Fix reference count leak in imx_gpc_probe()

Markus Elfring Markus.Elfring at web.de
Mon Dec 8 07:35:51 PST 2025


…
> @@ -495,12 +501,17 @@ static int imx_gpc_probe(struct platform_device *pdev)
…
>  	}
>  
> +	of_node_put(pgc_node);
>  	return 0;
> +

A duplicate statement can be avoided here.

	ret = 0;


> +err_free:
> +	of_node_put(pgc_node);
> +	return ret;
>  }


Regards,
Markus



More information about the linux-arm-kernel mailing list