vfio/pci: Fix failure to close file descriptor on error
commit8709b3954d4161bad30ccc435408ec50e10f53cc
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 23 Aug 2018 16:45:58 +0000 (23 10:45 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 23 Aug 2018 16:45:58 +0000 (23 10:45 -0600)
treebb4a7963d81f4b23a4189903e1b704a0efdd5b4f
parenta1c0f886496cfb4c336f8eb4155ed424567d653e
vfio/pci: Fix failure to close file descriptor on error

A new error path fails to close the device file descriptor when
triggered by a ballooning incompatibility within the group.  Fix it.

Fixes: 238e91728503 ("vfio/ccw/pci: Allow devices to opt-in for ballooning")
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c