mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
Merge branch 'pci/resource'
- When we coalesce host bridge windows, remove invalidated resources from the resource tree so future allocations work correctly (Ross Lagerwall) * pci/resource: PCI: Release resource invalidated by coalescing
This commit is contained in:
commit
d0b7b3a422
@ -996,8 +996,10 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)
|
||||
resource_list_for_each_entry_safe(window, n, &resources) {
|
||||
offset = window->offset;
|
||||
res = window->res;
|
||||
if (!res->flags && !res->start && !res->end)
|
||||
if (!res->flags && !res->start && !res->end) {
|
||||
release_resource(res);
|
||||
continue;
|
||||
}
|
||||
|
||||
list_move_tail(&window->node, &bridge->windows);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user