[Qemu-devel] [PATCH 0/2] ide: ahci: fix memory leak in device unit

Li Qiang posted 2 patches 7 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1486623844-13140-1-git-send-email-liqiang6-s@360.cn
Test checkpatch passed
Test docker passed
Test s390x passed
hw/ide/ahci.c             |  8 ++++++++
hw/ide/core.c             | 21 +++++++++++++++++++++
include/hw/ide/internal.h |  2 ++
3 files changed, 31 insertions(+)
[Qemu-devel] [PATCH 0/2] ide: ahci: fix memory leak in device unit
Posted by Li Qiang 7 years, 2 months ago
As the pci ahci can be hotplug and unplug, in the ahci unrealize
function it should free all the resource once allocated in the
realized function. This patchset first add cleanup function in 
core layer and then call it in the ahci unit.

Li Qiang (2):
  ide: core: add cleanup function
  ide: ahci: call cleanup function in ahci unit

 hw/ide/ahci.c             |  8 ++++++++
 hw/ide/core.c             | 21 +++++++++++++++++++++
 include/hw/ide/internal.h |  2 ++
 3 files changed, 31 insertions(+)

-- 
1.8.3.1