diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2020-03-05 04:32:12 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-03-09 12:44:34 +0300 |
commit | bc1a4130fc0309cc2f43b9cc616ebbc295e886ff (patch) | |
tree | 507819162b76d2ed432eb4358ab5d757f183541a /drivers/gpu/drm/virtio/virtgpu_drv.h | |
parent | f651c8b055423057d9f41525dfdc37b4796015d1 (diff) | |
download | linux-bc1a4130fc0309cc2f43b9cc616ebbc295e886ff.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_drv.h')
-rw-r--r-- | drivers/gpu/drm/virtio/virtgpu_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index 8e2027da6cce..c1824bdf2418 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.h +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h @@ -371,7 +371,7 @@ int virtio_gpu_object_create(struct virtio_gpu_device *vgdev, struct virtio_gpu_object **bo_ptr, struct virtio_gpu_fence *fence); -bool virtio_gpu_is_shmem(struct drm_gem_object *obj); +bool virtio_gpu_is_shmem(struct virtio_gpu_object *bo); /* virtgpu_prime.c */ struct drm_gem_object *virtgpu_gem_prime_import_sg_table( |