Message ID | 307972d0ea67a62b123120ef10f77c8908d5d851.1669046603.git.geert+renesas@glider.be (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Bjorn Helgaas |
Headers | show |
Series | [v2] PCI: Fix dropping valid root bus resources with .end = zero | expand |
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 1e234189aff15891..dccefb308ac60e64 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -998,7 +998,7 @@ 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->end) + if (!res->flags && !res->start && !res->end) continue; list_move_tail(&window->node, &bridge->windows);