提交 ce59af2d 编写于 作者: A Alex Williamson

vfio-pci: Cleanup on INTx setup failure

Missing some unwind code.
Signed-off-by: NAlex Williamson <alex.williamson@redhat.com>
上级 5834a83f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册