qemu/hw/vfio
Cornelia Huck c8726f7b24 vfio-ccw: plug memory leak while getting region info
vfio_get_dev_region_info() unconditionally allocates memory
for a passed-in vfio_region_info structure (and does not re-use
an already allocated structure). Therefore, we have to free
the structure we pass to that function in vfio_ccw_get_region()
for every region we successfully obtained information for.

Fixes: 8fadea24de ("vfio-ccw: support async command subregion")
Fixes: 46ea3841ed ("vfio-ccw: Add support for the schib region")
Fixes: f030532f2a ("vfio-ccw: Add support for the CRW region and IRQ")
Reported-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200928101701.13540-1-cohuck@redhat.com>
2020-10-02 13:52:49 +02:00
..
Kconfig
amd-xgbe.c
ap.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
calxeda-xgmac.c
ccw.c vfio-ccw: plug memory leak while getting region info 2020-10-02 13:52:49 +02:00
common.c util: rename qemu_open() to qemu_open_old() 2020-09-16 10:33:48 +01:00
display.c
igd.c
meson.build
pci-quirks.c
pci.c vfio: Rename PCI_VFIO to VFIO_PCI 2020-09-09 13:20:22 -04:00
pci.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
platform.c vfio/platform: Remove dead assignment in vfio_intp_interrupt() 2020-09-01 12:02:48 +02:00
spapr.c
trace-events trace-events: Fix attribution of trace points to source 2020-09-09 17:17:58 +01:00
trace.h