projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5834a83
)
vfio-pci: Cleanup on INTx setup failure
author
Alex Williamson
<alex.williamson@redhat.com>
Mon, 8 Oct 2012 14:45:30 +0000
(08:45 -0600)
committer
Alex Williamson
<alex.williamson@redhat.com>
Mon, 8 Oct 2012 14:45:30 +0000
(08:45 -0600)
Missing some unwind code.
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio_pci.c
patch
|
blob
|
history
diff --git
a/hw/vfio_pci.c
b/hw/vfio_pci.c
index b2383c4b55146c9a581f0f08e54d5130d89f8e9d..2325272c44ba615d8c79313fec7935938eb6e773 100644
(file)
--- a/
hw/vfio_pci.c
+++ b/
hw/vfio_pci.c
@@
-285,6
+285,8
@@
static int vfio_enable_intx(VFIODevice *vdev)
if (ioctl(vdev->fd, VFIO_DEVICE_SET_IRQS, &irq_set_fd)) {
error_report("vfio: Error: Failed to setup INTx fd: %m\n");
+ qemu_set_fd_handler(irq_set_fd.fd, NULL, NULL, vdev);
+ event_notifier_cleanup(&vdev->intx.interrupt);
return -errno;
}