mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 01:20:38 +07:00
drm/virtio: Fix warning in virtio_gpu_queue_fenced_ctrl_buffer.
Fix warning introduced with commit e1218b8c0c
("drm/virtio: Use vmalloc for command buffer allocations.")
from drm-misc-next.
Signed-off-by: David Riley <davidriley@chromium.org>
Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190912160048.212495-1-davidriley@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
88c5a5a021
commit
de2358050a
@ -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,
|
||||
&outcnt);
|
||||
if (!sgt)
|
||||
return -ENOMEM;
|
||||
return;
|
||||
vout = sgt->sgl;
|
||||
} else {
|
||||
sg_init_one(&sg, vbuf->data_buf, vbuf->data_size);
|
||||
|
Loading…
Reference in New Issue
Block a user