Commit 73b6196b authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] PCI: fix pci_get_slot() bug

On Wed, Dec 17, 2003 at 04:24:44PM -0800, Greg KH wrote:
> I've applied the pci portions of this patch to my trees and will send it
> on after 2.6.0 is out.

James Bottomley found a bug in it; could you also apply:
parent 70d7e120
...@@ -125,7 +125,7 @@ struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn) ...@@ -125,7 +125,7 @@ struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn)
WARN_ON(in_interrupt()); WARN_ON(in_interrupt());
spin_lock(&pci_bus_lock); spin_lock(&pci_bus_lock);
list_for_each(tmp, &bus->children) { list_for_each(tmp, &bus->devices) {
dev = pci_dev_b(tmp); dev = pci_dev_b(tmp);
if (dev->devfn == devfn) if (dev->devfn == devfn)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment