PATCH 2.3.23 pre2 PCI probe helper fix

Jeff Garzik (jgarzik@mandrakesoft.com)
Tue, 19 Oct 1999 05:48:53 -0400


This is a multi-part message in MIME format.
--------------1097EFD6ED7751C127956EC5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Linus and Martin,

The attached patch against 2.3.23 pre2 fixes the case where
pci_simple_probe() is passed the wildcard PCI_ANY_ID.

In some cases, the callback is executed multiple times for a single
board, which is not the correct behavior.

Regards,

Jeff
--------------1097EFD6ED7751C127956EC5
Content-Type: text/plain; charset=us-ascii;
name="2.3.23.pre2.pci-helper-scan-fix.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="2.3.23.pre2.pci-helper-scan-fix.patch"

Index: helper.c
===================================================================
RCS file: /g/cvslan/linux_2_3/drivers/pci/Attic/helper.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.12.1
diff -u -r1.1.1.1 -r1.1.1.1.12.1
--- helper.c 1999/10/08 05:05:58 1.1.1.1
+++ helper.c 1999/10/13 10:07:21 1.1.1.1.12.1
@@ -57,7 +57,7 @@
if (match_limit && match_limit == matches)
return matches;

- ent++;
+ break; /* stop list search on first match */
}

dev = pci_find_device (PCI_ANY_ID, PCI_ANY_ID, dev);

--------------1097EFD6ED7751C127956EC5--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/