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>
This commit is contained in:
parent
98a3583107
commit
f6dd68a77f
|
@ -68,6 +68,7 @@ void pci_remove_bus(struct pci_bus *pci_bus)
|
||||||
|
|
||||||
down_write(&pci_bus_sem);
|
down_write(&pci_bus_sem);
|
||||||
list_del(&pci_bus->node);
|
list_del(&pci_bus->node);
|
||||||
|
pci_bus_release_busn_res(pci_bus);
|
||||||
up_write(&pci_bus_sem);
|
up_write(&pci_bus_sem);
|
||||||
if (!pci_bus->is_added)
|
if (!pci_bus->is_added)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue