Skip to content

fix memory leak in virtio_gpu_resource_destroy

Li Qiang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2virtio-gpu: add declaration for virtio_gpu_cleanup_mapping functionhw/display/virtio-gpu.c+2 -00 replies
2/2virtio-gpu: call cleanup mapping function in resource destroyhw/display/virtio-gpu.c+1 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarc-André Lureau
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] fix memory leak in virtio_gpu_resource_destroy

If the guest destroy the resource before detach banking, the 'iov' and 'addrs' field in resource is not freed thus leading memory leak issue. This patchset address this.

Li Qiang (2):
virtio-gpu: add declaration for virtio_gpu_cleanup_mapping function
virtio-gpu: call cleanup mapping function in resource destroy

 hw/display/virtio-gpu.c | 3 +++
 1 file changed, 3 insertions(+)
Signature · 1 line
1.8.3.1