Commit de235805 authored by David Riley's avatar David Riley Committed by Gerd Hoffmann

drm/virtio: Fix warning in virtio_gpu_queue_fenced_ctrl_buffer.

Fix warning introduced with commit e1218b8c
("drm/virtio: Use vmalloc for command buffer allocations.")
from drm-misc-next.
Signed-off-by: default avatarDavid Riley <davidriley@chromium.org>
Reviewed-by: default avatarChia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190912160048.212495-1-davidriley@chromium.orgSigned-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent 88c5a5a0
...@@ -358,7 +358,7 @@ static void virtio_gpu_queue_fenced_ctrl_buffer(struct virtio_gpu_device *vgdev, ...@@ -358,7 +358,7 @@ static void virtio_gpu_queue_fenced_ctrl_buffer(struct virtio_gpu_device *vgdev,
sgt = vmalloc_to_sgt(vbuf->data_buf, vbuf->data_size, sgt = vmalloc_to_sgt(vbuf->data_buf, vbuf->data_size,
&outcnt); &outcnt);
if (!sgt) if (!sgt)
return -ENOMEM; return;
vout = sgt->sgl; vout = sgt->sgl;
} else { } else {
sg_init_one(&sg, vbuf->data_buf, vbuf->data_size); sg_init_one(&sg, vbuf->data_buf, vbuf->data_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment