mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 2.5.59 : drivers/net/fc/iph5526.c
@ 2003-02-07 17:23 Frank Davis
  2003-02-07 17:23 ` Valdis.Kletnieks
  2003-02-10  0:34 ` Rusty Russell
  0 siblings, 2 replies; 7+ messages in thread
From: Frank Davis @ 2003-02-07 17:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: fdavis, trivial

Hello all,
   The following patch addresses buzilla bug # 323, and removes a double 
logical issue. Please review for inclusion.

Regards,
Frank

--- linux/drivers/net/fc/iph5526.c.old	2003-01-16 21:21:45.000000000 -0500
+++ linux/drivers/net/fc/iph5526.c	2003-02-07 02:13:43.000000000 -0500
@@ -3769,7 +3769,7 @@
 	for (i = 0; i <= MAX_FC_CARDS; i++) 
 		fc[i] = NULL;
 
-	for (i = 0; i < clone_list[i].vendor_id != 0; i++)
+	for (i = 0; ((i < clone_list[i].vendor_id) && (clone_list[i].vendor_id != 0)); i++)
 	while ((pdev = pci_find_device(clone_list[i].vendor_id, clone_list[i].device_id, pdev))) {
 		unsigned short pci_command;
 		if (pci_enable_device(pdev))


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-11  9:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-07 17:23 [PATCH] 2.5.59 : drivers/net/fc/iph5526.c Frank Davis
2003-02-07 17:23 ` Valdis.Kletnieks
2003-02-10  0:34 ` Rusty Russell
2003-02-10 13:01   ` Horst von Brand
2003-02-11  4:18     ` Valdis.Kletnieks
2003-02-11  9:01       ` Horst von Brand
2003-02-11  9:26         ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®