X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=hw%2Fpci%2Fpci.c;h=bd8043c460ca224a928d4a1f4058a7e1d6cc2d4d;hb=c53598ed18e40a9609573b21f2a361221ca0f806;hp=e6b08e198840b587a2e9e627d948201162999566;hpb=aa262928595d431bfee7914cb7d9d79197f887a2;p=mirror_qemu.git diff --git a/hw/pci/pci.c b/hw/pci/pci.c index e6b08e1988..bd8043c460 100644 --- a/hw/pci/pci.c +++ b/hw/pci/pci.c @@ -869,6 +869,8 @@ static void do_pci_unregister_device(PCIDevice *pci_dev) pci_dev->bus->devices[pci_dev->devfn] = NULL; pci_config_free(pci_dev); + memory_region_del_subregion(&pci_dev->bus_master_container_region, + &pci_dev->bus_master_enable_region); address_space_destroy(&pci_dev->bus_master_as); }