OSDN Git Service

drm/virtio: fix a wait_event condition
authorChia-I Wu <olvaffe@gmail.com>
Wed, 5 Feb 2020 18:19:45 +0000 (10:19 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 6 Feb 2020 10:55:08 +0000 (11:55 +0100)
commit58547d7d5c6f4c5d18a1719c87799d825741e64a
treeb1ab25fcfb814ad8e4f3e4af02cee3caabef6dcd
parente46e31cf5366d6ca81644d047be38022f0ff7946
drm/virtio: fix a wait_event condition

outcnt may be greater than 1 since commit e1218b8c0cc1 ("drm/virtio:
Use vmalloc for command buffer allocations.").

Fixes: e1218b8c0cc1 ("drm/virtio: Use vmalloc for command buffer allocations.")
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Cc: David Riley <davidriley@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200205181955.202485-2-olvaffe@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_vq.c