linux-stable/drivers/gpu/drm/virtio
Dan Carpenter 44510939b1 drm/virtio: Fix a double free in virtio_gpu_cmd_map()
This is freed both here and in the caller (virtio_gpu_vram_map()) so
it's a double free.  The correct place is only in the caller.

Fixes: 16845c5d54 ("drm/virtio: implement blob resources: implement vram object")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20201030114808.GD3251003@mwanda
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2020-11-06 08:50:30 +01:00
..
Kconfig drm: virtio: fix kconfig dependency warning 2020-08-31 08:55:02 +02:00
Makefile drm/virtio: implement blob resources: implement vram object 2020-09-29 11:23:33 +02:00
virtgpu_debugfs.c drm/virtio: implement blob resources: implement vram object 2020-09-29 11:23:33 +02:00
virtgpu_display.c drm/atomic: Pass the full state to CRTC atomic begin and flush 2020-11-02 12:37:49 +01:00
virtgpu_drv.c drm/virtio: implement blob resources: probe for the feature. 2020-09-29 11:23:20 +02:00
virtgpu_drv.h drm/virtio: implement blob resources: resource create blob ioctl 2020-09-29 11:23:51 +02:00
virtgpu_fence.c drm/virtio: move to_virtio_fence inside virtgpu_fence 2019-12-19 07:13:46 +01:00
virtgpu_gem.c drm/virtio: Use struct_size() helper in kmalloc() 2020-08-17 13:08:43 +02:00
virtgpu_ioctl.c drm/virtio: advertise features to userspace 2020-09-29 11:23:57 +02:00
virtgpu_kms.c drm/virtio: implement blob resources: implement vram object 2020-09-29 11:23:33 +02:00
virtgpu_object.c drm/virtio: use kvmalloc for large allocations 2020-11-05 12:33:26 +01:00
virtgpu_plane.c drm/virtio: implement blob resources: blob display integration 2020-09-29 11:23:42 +02:00
virtgpu_prime.c drm/virtio: implement blob resources: refactor UUID code somewhat 2020-09-29 11:23:45 +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_vq.c drm/virtio: Fix a double free in virtio_gpu_cmd_map() 2020-11-06 08:50:30 +01:00
virtgpu_vram.c drm/virtio: implement blob resources: resource create blob ioctl 2020-09-29 11:23:51 +02:00