Fix two independent cleanup omissions for control buffers that do not reach the virtqueue.
Patch 1 fixes the reproduced GEM/VMA leak when fbdev damage work races with device unplug. Patch 2 fixes the vmalloc_to_sgt() allocation-failure path, found by code inspection. Testing: - Repeated virtio-gpu unbind/rebind no longer triggers the drm_mm_takedown warning. - Built drivers/gpu/drm/virtio/virtgpu_vq.o with W=1. Yao Kai (2): drm/virtio: release object array when device is unplugged drm/virtio: free control buffer when scatterlist allocation fails drivers/gpu/drm/virtio/virtgpu_vq.c | 3 +++ 1 file changed, 3 insertions(+) base-commit: 8ba098e6b6ff0db8edf28528d1552be261af30d4 -- 2.43.0
