Skip to content

Commit

Permalink
drm/virtio: fix an error code in virtio_gpu_init()
Browse files Browse the repository at this point in the history
If devm_request_mem_region() fails this code currently returns success
but it should return -EBUSY.

Fixes: 6076a97 ("drm/virtio: implement blob resources: probe for host visible region")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://patchwork.freedesktop.org/patch/msgid/YBpy0GS7GfmafMfe@mwanda
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit eb988a2)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
  • Loading branch information
Dan Carpenter authored and Maarten Lankhorst committed Feb 9, 2021
1 parent e2e2e00 commit 8d0cb88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/virtio/virtgpu_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ int virtio_gpu_init(struct drm_device *dev)
vgdev->host_visible_region.len,
dev_name(&vgdev->vdev->dev))) {
DRM_ERROR("Could not reserve host visible region\n");
ret = -EBUSY;
goto err_vqs;
}

Expand Down

0 comments on commit 8d0cb88

Please sign in to comment.