]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: only destroy created contexts
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 8 Apr 2020 23:29:38 +0000 (16:29 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 28 Apr 2020 09:22:23 +0000 (11:22 +0200)
commitee20497e0acb14b3d31d83debf7bf8c8e2baec39
tree0384971a53b8be4be7859b04bd21a92d6cf9cecc
parent6df5bd3fd1461cd06ea321459dbc5c5268e44785
drm/virtio: only destroy created contexts

This can happen if userspace doesn't issue any 3D ioctls before
closing the DRM fd.

Fixes: ec15ca83305a ("drm/virtio: enqueue virtio_gpu_create_context after the first 3D ioctl")
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200408232938.55816-1-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_kms.c