qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v4 0/2] fix two virtio queues memleak


From: Pan Nengyuan
Subject: [PATCH v4 0/2] fix two virtio queues memleak
Date: Sat, 28 Mar 2020 08:57:03 +0800

This series fix two vqs leak:
1. Do delete vqs on the error path in virtio_blk_device_realize().
2. Do delete vqs in virtio_iommu_device_unrealize() to fix another leaks.

v2->v1:
- Fix incorrect free in virtio_blk_device_realize, it will cause a uaf.

v3->v2:
- Also clean 's->as_by_busptr' hash table in 
virtio_iommu_device_unrealize.(Suggested by Stefano Garzarella)

v4->v3:
- update patch2/2 subject message and move g_hash_table_destroy() at the 
beggining of unrealize().

Pan Nengyuan (2):
  virtio-blk: delete vqs on the error path in realize()
  virtio-iommu: avoid memleak in the unrealize

 hw/block/virtio-blk.c    | 3 +++
 hw/virtio/virtio-iommu.c | 3 +++
 2 files changed, 6 insertions(+)

-- 
2.18.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]