]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: Remove incorrect kfree()
authorEzequiel Garcia <ezequiel@collabora.com>
Wed, 2 Jan 2019 17:55:06 +0000 (14:55 -0300)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 8 Jan 2019 10:45:19 +0000 (11:45 +0100)
commitcd1b2e3969cc97d7d7972d446710715cb94bb093
tree0d3bb8c3cd8ac09d3bbc2a30627e55008ac1237f
parent0590e4d1e312d85ec456bcb7446b219d588b62b3
drm/virtio: Remove incorrect kfree()

The virtio_gpu_output is a member of struct virtio_gpu_device
and is not a dynamically-allocated chunk, so it's wrong to kfree() it.
Removing it fixes a memory corruption BUG() that can be triggered
when the virtio-gpu driver is removed.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20190102175507.4653-1-ezequiel@collabora.com
drivers/gpu/drm/virtio/virtgpu_display.c