WSL2-Linux-Kernel/drivers/gpu/drm/virtio
Dmitry Osipenko 60630834fa drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling
[ Upstream commit 64b88afbd9 ]

Previous commit fixed checking of the ERR_PTR value returned by
drm_gem_shmem_get_sg_table(), but it missed to zero out the shmem->pages,
which will crash virtio_gpu_cleanup_object(). Add the missing zeroing of
the shmem->pages.

Fixes: c24968734a ("drm/virtio: Fix NULL vs IS_ERR checking in virtio_gpu_object_shmem_init")
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20220630200726.1884320-2-dmitry.osipenko@collabora.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 12:34:51 +02:00
..
Kconfig
Makefile
virtgpu_debugfs.c
virtgpu_display.c drm/virtio: fix NULL pointer dereference in virtio_gpu_conn_get_modes 2022-06-09 10:22:30 +02:00
virtgpu_drv.c drm/aperture: Pass DRM driver structure instead of driver name 2021-07-01 11:11:55 +02:00
virtgpu_drv.h
virtgpu_fence.c
virtgpu_gem.c drm/virtio: Ensure that objs is not NULL in virtio_gpu_array_put_free() 2022-03-28 09:58:45 +02:00
virtgpu_ioctl.c virtio-gpu: fix a missing check to avoid NULL dereference 2022-08-17 14:23:18 +02:00
virtgpu_kms.c
virtgpu_object.c drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling 2022-10-26 12:34:51 +02:00
virtgpu_plane.c drm/virtio: Use appropriate atomic state in virtio_gpu_plane_cleanup_fb() 2022-10-26 12:34:24 +02:00
virtgpu_prime.c drm/virtio: set non-cross device blob uuid_state 2021-08-12 14:58:31 +02:00
virtgpu_trace.h
virtgpu_trace_points.c
virtgpu_vq.c drm/virtio: Check whether transferred 2D BO is shmem 2022-10-26 12:34:23 +02:00
virtgpu_vram.c