On 11/10/25 15:52, Sergio Lopez wrote:
> diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c 
> b/drivers/gpu/drm/virtio/virtgpu_prime.c
> index ce49282198cb..06593496c53f 100644
> --- a/drivers/gpu/drm/virtio/virtgpu_prime.c
> +++ b/drivers/gpu/drm/virtio/virtgpu_prime.c
> @@ -257,8 +257,11 @@ static int virtgpu_dma_buf_init_obj(struct drm_device 
> *dev,
>       params.blob_flags = VIRTGPU_BLOB_FLAG_USE_SHAREABLE;
>       params.size = attach->dmabuf->size;
>  
> -     virtio_gpu_cmd_resource_create_blob(vgdev, bo, &params,
> -                                         ents, nents);
> +     ret = virtio_gpu_cmd_resource_create_blob(vgdev, bo, &params,
> +                                               ents, nents);
> +     if (ret)
> +             goto err_import;

The error handling is incorrect, dma_buf_unmap_attachment() won't be
invoked when it should be.

-- 
Best regards,
Dmitry

Reply via email to