patch-2.3.23 linux/drivers/pci/helper.c

Next file: linux/drivers/pci/pci.c
Previous file: linux/drivers/net/via-rhine.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.22/linux/drivers/pci/helper.c linux/drivers/pci/helper.c
@@ -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);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)