Message ID | 1491981137-32713-1-git-send-email-clg@kaod.org |
---|---|
State | New |
Headers | show |
Index: qemu-powernv-2.9.git/hw/pci/pci.c =================================================================== --- qemu-powernv-2.9.git.orig/hw/pci/pci.c +++ qemu-powernv-2.9.git/hw/pci/pci.c @@ -1419,7 +1419,9 @@ qemu_irq pci_allocate_irq(PCIDevice *pci void pci_set_irq(PCIDevice *pci_dev, int level) { int intx = pci_intx(pci_dev); - pci_irq_handler(pci_dev, intx, level); + if (intx >= 0) { + pci_irq_handler(pci_dev, intx, level); + } } /* Special hooks used by device assignment */