]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: add case for shmem objects in virtio_gpu_cleanup_object(..)
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 5 Mar 2020 01:32:12 +0000 (17:32 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Mar 2020 09:44:34 +0000 (10:44 +0100)
commit8fdb6a6eb00d9175338f5ddf02f461ce43fd6709
tree507819162b76d2ed432eb4358ab5d757f183541a
parent1a4b7b77999edde9255232762a926b83387968aa
drm/virtio: add case for shmem objects in virtio_gpu_cleanup_object(..)

This function can be reused for hostmem objects.

v2: move virtio_gpu_is_shmem() check to virtio_gpu_cleanup_object()
v3: use-after free fix

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200305013212.130640-2-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_object.c