Signed-off-by: Gleb Natapov <gleb@xxxxxxxxxx> diff --git a/qemu/hw/pci.c b/qemu/hw/pci.c index 04aecc2..a6d57e5 100644 --- a/qemu/hw/pci.c +++ b/qemu/hw/pci.c @@ -213,7 +213,7 @@ static void pci_unregister_io_regions(PCIDevice *pci_dev) for(i = 0; i < PCI_NUM_REGIONS; i++) { r = &pci_dev->io_regions[i]; - if (!r->size) + if (!r->size || r->addr == -1) continue; if (r->type == PCI_ADDRESS_SPACE_IO) { isa_unassign_ioport(r->addr, r->size); -- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html