drm/virtio: Don't return invalid caps on timeout
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 27 Nov 2017 14:21:25 +0000 (15:21 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 1 Feb 2018 16:45:41 +0000 (17:45 +0100)
commit424c3f05e1673b684881b487771d38d276750b3d
treedadde921e102178829490b7b759c2a55b1ba84e9
parentc2925bde829a748265a69aef128f0a88d82cb689
drm/virtio: Don't return invalid caps on timeout

If the wait timeouts, the caps are probably invalid and we shouldn't be
passing them to userspace.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20171127142126.25765-1-tomeu.vizoso@collabora.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_ioctl.c