> This function gets a device_node reference via
> of_graph_get_remote_port_parent() and stores it in encoder_node, but necer

                                                                       never?


> puts that reference. Add it.
…
> +++ b/drivers/gpu/drm/tiny/arcpgu.c
> @@ -250,7 +250,8 @@ DEFINE_DRM_GEM_DMA_FOPS(arcpgu_drm_ops);
>  static int arcpgu_load(struct arcpgu_drm_private *arcpgu)
>  {
>       struct platform_device *pdev = to_platform_device(arcpgu->drm.dev);
> -     struct device_node *encoder_node = NULL, *endpoint_node = NULL;
> +     struct device_node *encoder_node __free(device_node) = NULL;
> +     struct device_node *endpoint_node = NULL;
>       struct drm_connector *connector = NULL;
>       struct drm_device *drm = &arcpgu->drm;
>       int ret;

May the scopes be reduced for any of these variables?

Regards,
Markus

Reply via email to