lkml.org 
[lkml]   [1999]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH 2.3.23 pre2 PCI probe helper fix
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,

JeffIndex: 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);
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.022 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site