qemu-e2k/hw/vfio
Alex Williamson b5bd049fa9 vfio/pci: Cleanup vfio_early_setup_msix() error path
With the addition of the Chelsio quirk we have an error path out of
vfio_early_setup_msix() that doesn't free the allocated VFIOMSIXInfo
struct.  This doesn't introduce a leak as it still gets freed in the
vfio_put_device() path, but it's complicated and sloppy to rely on
that.  Restructure to free the allocated data on error and only link
it into the vdev on success.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2015-09-23 13:04:43 -06:00
..
calxeda-xgmac.c hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
common.c maint: remove / fix many doubled words 2015-09-11 10:21:38 +03:00
Makefile.objs hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
pci.c vfio/pci: Cleanup vfio_early_setup_msix() error path 2015-09-23 13:04:43 -06:00
platform.c trivial: remove trailing newline from error_report 2015-09-11 10:21:38 +03:00