[PATCH] 2.5.59 : drivers/net/fc/iph5526.c

From: Frank Davis (fdavis@si.rr.com)
Date: Fri Feb 07 2003 - 12:23:22 EST


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))

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



This archive was generated by hypermail 2b29 : Fri Feb 07 2003 - 22:00:23 EST