mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm/virtio: fix an error code in virtio_gpu_init()
If devm_request_mem_region() fails this code currently returns success
but it should return -EBUSY.
Fixes: 6076a9711d
("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>
This commit is contained in:
parent
5823cca39d
commit
eb988a2ee5
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue