qemu/hw/s390x
Kevin Wolf b8f48f4033 hw/s390x/ccw-device: Fix memory leak in loadparm setter
Commit bdf12f2a fixed the setter for the "loadparm" machine property,
which gets a string from a visitor, passes it to s390_ipl_fmt_loadparm()
and then forgot to free it. It left another instance of the same problem
unfixed in the "loadparm" device property. Fix it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-ID: <20250625082751.24896-1-kwolf@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 78e3781541)
(Mjt: bdf12f2a is 8efe1592 in stable-10.0 branch)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2025-07-03 15:43:18 +03:00
..
3270-ccw.c hw/s390x: Remove empty Property lists 2024-12-19 19:33:37 +01:00
ap-bridge.c qbus: Rename qbus_create() to qbus_new() 2021-09-30 13:44:08 +01:00
ap-device.c ap-device: Rename AP_DEVICE_TYPE to TYPE_AP_DEVICE 2020-09-09 13:20:22 -04:00
ccw-device.c hw/s390x/ccw-device: Fix memory leak in loadparm setter 2025-07-03 15:43:18 +03:00
ccw-device.h hw/s390x: Restrict "loadparm" property to devices that can be used for booting 2024-11-18 10:54:42 +01:00
cpu-topology.c qapi/machine: Rename CpuS390* to S390Cpu*, and drop 'prefix' 2024-09-10 13:22:47 +02:00
css-bridge.c hw/s390x/css-bridge: Remove the "css_dev_path" property 2025-01-07 14:51:39 +01:00
css.c qdev: Rename PropertyInfo member @name to @type 2025-03-06 10:30:58 +01:00
event-facility.c hw: Use device_class_set_legacy_reset() instead of opencoding 2024-09-13 15:31:44 +01:00
ipl.c hw/loader: Pass ELFDATA endian order argument to load_elf() 2025-01-31 19:36:44 +01:00
ipl.h hw/s390x/ipl: Remove the "iplbext_migration" property 2025-01-07 14:51:39 +01:00
Kconfig s390x: virtio-mem support 2024-12-21 20:15:06 +01:00
meson.build s390x: virtio-mem support 2024-12-21 20:15:06 +01:00
s390-ccw.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
s390-hypercall.c s390x/s390-hypercall: introduce DIAG500 STORAGE_LIMIT 2024-12-21 15:59:59 +01:00
s390-hypercall.h s390x/s390-hypercall: introduce DIAG500 STORAGE_LIMIT 2024-12-21 15:59:59 +01:00
s390-pci-bus.c * Bug fixes and some small improvements for functional tests 2025-03-08 11:31:26 +08:00
s390-pci-inst.c s390x/pci: add support for guests that request direct mapping 2025-03-07 09:24:00 +01:00
s390-pci-kvm.c s390x/pci: refresh fh before disabling aif 2024-01-19 11:38:32 +01:00
s390-pci-vfio.c s390x/pci: indicate QEMU supports relaxed translation for passthrough 2025-03-07 09:24:00 +01:00
s390-skeys-kvm.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
s390-skeys.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
s390-stattrib-kvm.c Hi, 2024-12-22 14:33:27 -05:00
s390-stattrib.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
s390-virtio-ccw.c s390x: Fix leak in machine_set_loadparm 2025-05-16 00:54:49 +03:00
sclp.c s390x/s390-virtio-ccw: prepare for memory devices 2024-12-21 15:59:59 +01:00
sclpcpu.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
sclpquiesce.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tod-kvm.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tod-tcg.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
tod.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
trace-events hw/s390x: Introduce s390_skeys_get|set() helpers 2024-06-19 12:42:03 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00
vhost-scsi-ccw.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
vhost-user-fs-ccw.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
vhost-vsock-ccw.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-9p.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-balloon.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-blk.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-crypto.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-gpu.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-input.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-md-stubs.c s390x/virtio-ccw: add support for virtio based memory devices 2024-12-21 15:59:59 +01:00
virtio-ccw-md.c s390x/virtio-ccw: add support for virtio based memory devices 2024-12-21 15:59:59 +01:00
virtio-ccw-md.h s390x/virtio-ccw: add support for virtio based memory devices 2024-12-21 15:59:59 +01:00
virtio-ccw-mem.c Hi, 2024-12-22 14:33:27 -05:00
virtio-ccw-mem.h s390x: virtio-mem support 2024-12-21 20:15:06 +01:00
virtio-ccw-net.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-rng.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-scsi.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw-serial.c include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST 2024-12-19 19:36:37 +01:00
virtio-ccw.c hw/s390x: Remove the "adapter_routes_max_batch" property from the flic 2025-01-07 14:51:39 +01:00
virtio-ccw.h hw/s390/virtio-ccw: Convert to three-phase reset 2024-09-13 15:31:43 +01:00