[PATCH v3 0/3] virtio: fix memory leak in virtio-balloon/virtio-serial-bus

pannengyuan@huawei.com posted 3 patches 4 years, 4 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1575856810-9388-1-git-send-email-pannengyuan@huawei.com
Test asan passed
Test checkpatch passed
Test FreeBSD passed
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test docker-quick@centos7 passed
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, Amit Shah <amit@kernel.org>, Laurent Vivier <lvivier@redhat.com>
hw/char/virtio-serial-bus.c |  8 ++++++++
hw/virtio/virtio-balloon.c  |  7 +++++++
hw/virtio/virtio.c          | 16 +++++++++++-----
include/hw/virtio/virtio.h  |  2 ++
4 files changed, 28 insertions(+), 5 deletions(-)
[PATCH v3 0/3] virtio: fix memory leak in virtio-balloon/virtio-serial-bus
Posted by pannengyuan@huawei.com 4 years, 4 months ago
From: Pan Nengyuan <pannengyuan@huawei.com>

This series add a new function to cleanup vqueue through a vq pointer, and fix memory
leaks in virtio-balloon and virtio-serial-bus.

---
Changes v2 to v1:
- add a new function to cleanup vqueue through a vq pointer.
---
Changes v3 to v2:
- change function name from virtio_delete_queue to virtio_queue_cleanup.

Michael S. Tsirkin(1)
  virtio: add ability to delete vq through a pointer 

Pan Nengyuan (2):
  virtio-balloon: fix memory leak while attach virtio-balloon device
  virtio-serial-bus: fix memory leak while attach virtio-serial-bus

 hw/char/virtio-serial-bus.c |  8 ++++++++
 hw/virtio/virtio-balloon.c  |  7 +++++++
 hw/virtio/virtio.c          | 16 +++++++++++-----
 include/hw/virtio/virtio.h  |  2 ++
 4 files changed, 28 insertions(+), 5 deletions(-)

-- 
2.7.2.windows.1