Re: [PATCH v3 09/19] drm/virtio: implement blob resources: probe for host visible region

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Thu, Sep 17, 2020 at 2:40 AM Gerd Hoffmann <kraxel@xxxxxxxxxx> wrote:
  Hi,

> +             if (!devm_request_mem_region(&vgdev->vdev->dev,
> +                                          vgdev->host_visible_region.addr,
> +                                          vgdev->host_visible_region.len,
> +                                          dev_name(&vgdev->vdev->dev))) {
> +                     DRM_ERROR("Could not reserve host visible region\n");
> +                     goto err_vqs;
> +             }

> +     if (vgdev->has_host_visible) {
> +             devm_release_mem_region(&vgdev->vdev->dev,
> +                                     vgdev->host_visible_region.addr,
> +                                     vgdev->host_visible_region.len);
> +     }

Hmm. isn't it the point of the managed apis that the release happens
automatically?  I think you don't need the devm_release_mem_region
call (it doesn't break things though).

Ack, good catch.  Fixed.
 

take care,
  Gerd

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux