PCI: release busn_res when removing bus
authorYinghai Lu <yinghai@kernel.org>
Fri, 18 May 2012 01:51:11 +0000 (18:51 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 13 Jun 2012 21:42:22 +0000 (15:42 -0600)
Release bus number resource when removing a bus.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/remove.c

index fd77e2bde2e8feadc7c5b1cceab94374f00100fe..04a4861b4749f94956ce1e730298658dba12f3a8 100644 (file)
@@ -68,6 +68,7 @@ void pci_remove_bus(struct pci_bus *pci_bus)
 
        down_write(&pci_bus_sem);
        list_del(&pci_bus->node);
+       pci_bus_release_busn_res(pci_bus);
        up_write(&pci_bus_sem);
        if (!pci_bus->is_added)
                return;