mbox series

[v2,0/2] fix two virtio queues memleak

Message ID 20200327045620.9082-1-pannengyuan@huawei.com (mailing list archive)
Headers show
Series fix two virtio queues memleak | expand

Message

Pan Nengyuan March 27, 2020, 4:56 a.m. UTC
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 v1, it will cause a uaf.

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

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