提交 eb988a2e 编写于 作者: D Dan Carpenter 提交者: Gerd Hoffmann

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: 6076a971 ("drm/virtio: implement blob resources: probe for host visible region")
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Link: http://patchwork.freedesktop.org/patch/msgid/YBpy0GS7GfmafMfe@mwandaSigned-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 5823cca3
...@@ -163,6 +163,7 @@ int virtio_gpu_init(struct drm_device *dev) ...@@ -163,6 +163,7 @@ int virtio_gpu_init(struct drm_device *dev)
vgdev->host_visible_region.len, vgdev->host_visible_region.len,
dev_name(&vgdev->vdev->dev))) { dev_name(&vgdev->vdev->dev))) {
DRM_ERROR("Could not reserve host visible region\n"); DRM_ERROR("Could not reserve host visible region\n");
ret = -EBUSY;
goto err_vqs; goto err_vqs;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册