Re: [PATCH] drm: sti: fix device leaks at component probe
From: Markus Elfring
Date: Tue Nov 04 2025 - 03:02:01 EST
…> +++ w/drivers/gpu/drm/sti/sti_vtg.c
> @@ -142,7 +142,7 @@ struct sti_vtg {
>
> struct sti_vtg *of_vtg_find(struct device_node *np)
> {
> - struct platform_device *pdev;
> + struct platform_device *pdev __free(put_device) = NULL;
…
The scope may be reduced for such a variable.
Regards,
Markus