android_kernel_sony_sdm845/drivers/gpu
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xie Yongji 51a37e9fb0 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-20 16:21:06 +02:00
..
drm drm/virtio: Fix double free on probe failure 2021-07-20 16:21:06 +02:00
host1x gpu: host1x: Detach driver on unregister 2020-07-22 09:10:44 +02:00
ipu-v3 gpu: ipu-v3: image-convert: Combine rotate/no-rotate irq handlers 2020-08-21 11:02:09 +02:00
vga vgaarbiter: rst-ifiy and polish kerneldoc 2016-08-16 18:49:56 +02:00
Makefile