From 73b6196bef941470fb5245284b03e9e9d9c0ff69 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Wed, 28 Jan 2004 22:46:48 -0800 Subject: [PATCH] [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: --- drivers/pci/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/search.c b/drivers/pci/search.c index aa900b17f2f78..701a83be3b307 100644 --- a/drivers/pci/search.c +++ b/drivers/pci/search.c @@ -125,7 +125,7 @@ struct pci_dev * pci_get_slot(struct pci_bus *bus, unsigned int devfn) WARN_ON(in_interrupt()); spin_lock(&pci_bus_lock); - list_for_each(tmp, &bus->children) { + list_for_each(tmp, &bus->devices) { dev = pci_dev_b(tmp); if (dev->devfn == devfn) goto out; -- 2.53.0