]> git.hungrycats.org Git - linux/commitdiff
[PATCH] PCI: fix pci_get_slot() bug
authorMatthew Wilcox <willy@debian.org>
Thu, 29 Jan 2004 06:46:48 +0000 (22:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 29 Jan 2004 06:46:48 +0000 (22:46 -0800)
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

index aa900b17f2f78974ab195a4c91dee541ee78fdca..701a83be3b3072ff2f53aeeaaff8c3ef6e0cd707 100644 (file)
@@ -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;