diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-05-17 18:51:11 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-06-13 15:42:22 -0600 |
commit | f6dd68a77f9c07088eee71a1787cfc84dcf49198 (patch) | |
tree | 4ebfc42582fdb362cf2a977c0fb9059427740c0d | |
parent | 98a3583107ed587ed3cfe2a1d8e5347421de5a80 (diff) | |
download | linux-f6dd68a77f9c07088eee71a1787cfc84dcf49198.tar.gz linux-f6dd68a77f9c07088eee71a1787cfc84dcf49198.tar.bz2 linux-f6dd68a77f9c07088eee71a1787cfc84dcf49198.zip |
PCI: release busn_res when removing bus
Release bus number resource when removing a bus.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/remove.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index fd77e2bde2e8..04a4861b4749 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c @@ -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; |