qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 11/11] vfio-pci: Cleanup on INTx setup failure


From: Alex Williamson
Subject: [Qemu-devel] [PATCH 11/11] vfio-pci: Cleanup on INTx setup failure
Date: Thu, 04 Oct 2012 16:18:45 -0600
User-agent: StGIT/0.14.3

Missing some unwind code.

Signed-off-by: Alex Williamson <address@hidden>
---

 hw/vfio_pci.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/vfio_pci.c b/hw/vfio_pci.c
index b2383c4..2325272 100644
--- 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;
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]