Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324275
b: refs/heads/master
c: 817a268
h: refs/heads/master
i:
  324273: aa8b1e6
  324271: 731f623
v: v3
  • Loading branch information
Yinghai Lu authored and Bjorn Helgaas committed Sep 18, 2012
1 parent b8fac92 commit 293e96e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1965f66e7db08d1ebccd24a59043eba826cc1ce8
refs/heads/master: 817a268516f3aaf9e54c5a0f880de37d03ef4c79
6 changes: 5 additions & 1 deletion trunk/drivers/pci/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,15 @@ EXPORT_SYMBOL_GPL(pci_bus_resource_n);
void pci_bus_remove_resources(struct pci_bus *bus)
{
int i;
struct pci_bus_resource *bus_res, *tmp;

for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++)
bus->resource[i] = NULL;

pci_free_resource_list(&bus->resources);
list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) {
list_del(&bus_res->list);
kfree(bus_res);
}
}

/**
Expand Down

0 comments on commit 293e96e

Please sign in to comment.