linux-brain/drivers/gpu/drm/virtio
Xie Yongji 6ebfdf01cc drm/virtio: Fix double free on probe failure
[ Upstream commit cec7f1774605a5ef47c134af62afe7c75c30b0ee ]

The virtio_gpu_init() will free vgdev and vgdev->vbufs on failure.
But such failure will be caught by virtio_gpu_probe() and then
virtio_gpu_release() will be called to do some cleanup which
will free vgdev and vgdev->vbufs again. So let's set dev->dev_private
to NULL to avoid double free.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20210517084913.403-2-xieyongji@bytedance.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-19 08:53:08 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile drm/virtio: drop framebuffer dirty tracking code 2019-06-13 08:47:15 +02:00
virtgpu_debugfs.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_display.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_drv.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_drv.h drm/ttm: use gem vma_node 2019-08-06 08:21:54 +02:00
virtgpu_fence.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_gem.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_ioctl.c Revert "drm/virtio: switch virtio_gpu_wait_ioctl() to gem helper." 2020-01-17 19:48:51 +01:00
virtgpu_kms.c drm/virtio: Fix double free on probe failure 2021-07-19 08:53:08 +02:00
virtgpu_object.c drm/virtio: module_param_named() requires linux/moduleparam.h 2020-03-12 13:00:32 +01:00
virtgpu_plane.c dma-buf: rename reservation_object to dma_resv 2019-08-13 09:09:30 +02:00
virtgpu_prime.c drm/ttm: use gem vma_node 2019-08-06 08:21:54 +02:00
virtgpu_trace.h drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_trace_points.c drm/virtio: add trace events for commands 2019-05-06 10:52:58 +02:00
virtgpu_ttm.c drm/virtgpu: drop use of drmP.h 2019-07-15 18:11:31 +02:00
virtgpu_vq.c drm/virtio: use kvmalloc for large allocations 2021-03-07 12:20:43 +01:00