Re: [PATCH] drm: sti: fix device leaks at component probe

Markus Elfring
2025-11-04T08:01:19Z

…> +++ 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