mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 13:51:44 +00:00
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);
|
||||
list_del(&pci_bus->node);
|
||||
pci_bus_release_busn_res(pci_bus);
|
||||
up_write(&pci_bus_sem);
|
||||
if (!pci_bus->is_added)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user