Skip to content

Commit

Permalink
PCI: Use request_resource_conflict() instead of insert_ for bus numbers
Browse files Browse the repository at this point in the history
If a conflict happens during insert_resource_conflict() and all conflicts
fit within the newly inserted resource then they will become children of
the new resource. This is almost certainly not what we want for bus
numbers.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Andreas Noever authored and Bjorn Helgaas committed Feb 11, 2014
1 parent 619c8c3 commit ced04d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1835,7 +1835,7 @@ int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int bus_max)
res->flags |= IORESOURCE_PCI_FIXED;
}

conflict = insert_resource_conflict(parent_res, res);
conflict = request_resource_conflict(parent_res, res);

if (conflict)
dev_printk(KERN_DEBUG, &b->dev,
Expand Down

0 comments on commit ced04d1

Please sign in to comment.