]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Fix a double free in virtio_gpu_cmd_map()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 30 Oct 2020 11:48:08 +0000 (14:48 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 6 Nov 2020 07:50:30 +0000 (08:50 +0100)
commitdd4cf1f28de646d83d1d0ea0333c0c3b99d1548e
treefa141bc96dc025597c95ae0b7294a8cc1eb0d0f4
parent7d91ec297b95bb400ab9877ca7c79b64b19f2d25
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: 8d6a7d7da446 ("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>
drivers/gpu/drm/virtio/virtgpu_vq.c