Skip to content

hw: Free DEFINE_PROP_ARRAY()'s arrays in instance_finalize()

Philippe Mathieu-Daudé qemu-arm qemu-devel 1 version Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/6hw/virtio: Add VirtioPCIDeviceTypeInfo::instance_finalize fieldhw/virtio/virtio-pci.c include/hw/virtio/virtio-pci.h+2 -01 reply
2/6hw/virtio: Free VirtIOIOMMUPCI::vdev.reserved_regions[] on finalize()hw/virtio/virtio-iommu-pci.c+8 -02 replies
3/6hw/misc/mps2-scc: Free MPS2SCC::oscclk[] array on finalize()hw/misc/mps2-scc.c+8 -00 replies
4/6hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize()hw/nvram/xlnx-efuse.c+8 -00 replies
5/6hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" arrayhw/nvram/xlnx-versal-efuse-ctrl.c+8 -00 replies
6/6hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] arrayhw/input/stellaris_gamepad.c+8 -00 replies

Reviews trailers per patch

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

PatchEric Auger
1/6
2/6R-b
3/6
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH-for-8.2 0/6] hw: Free DEFINE_PROP_ARRAY()'s arrays in instance_finalize()

In few places we forget to free the array allocated by the DEFINE_PROP_ARRAY() macro handlers. Fix that.

Philippe Mathieu-Daudé (6):
hw/virtio: Add VirtioPCIDeviceTypeInfo::instance_finalize field hw/virtio: Free VirtIOIOMMUPCI::vdev.reserved_regions[] on finalize() hw/misc/mps2-scc: Free MPS2SCC::oscclk[] array on finalize() hw/nvram/xlnx-efuse: Free XlnxEFuse::ro_bits[] array on finalize() hw/nvram/xlnx-efuse-ctrl: Free XlnxVersalEFuseCtrl[] "pg0-lock" array hw/input/stellaris_gamepad: Free StellarisGamepad::keycodes[] array

 include/hw/virtio/virtio-pci.h    | 1 +
 hw/input/stellaris_gamepad.c      | 8 ++++++++
 hw/misc/mps2-scc.c                | 8 ++++++++
 hw/nvram/xlnx-efuse.c             | 8 ++++++++
 hw/nvram/xlnx-versal-efuse-ctrl.c | 8 ++++++++
 hw/virtio/virtio-iommu-pci.c      | 8 ++++++++
 hw/virtio/virtio-pci.c            | 1 +
 7 files changed, 42 insertions(+)
Signature · 1 line
2.41.0