aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2006-11-29 16:21:33 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-11-29 16:45:07 -0500
commit315917d23fdd20a0f4ff99b9228de5840d9d276c (patch)
treed1ddfc02bcfe5c7f57ed604c7d928d6e1bd74d11 /drivers
parentaf768c6711de615abf9c679732a2f8245a4c286c (diff)
[PATCH] r8169: Fix iteration variable sign
This changes the type of variable "i" in rtl8169_init_one() from "unsigned int" to "int". "i" is checked for < 0 later, which can never happen for "unsigned". This results in broken error handling. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/r8169.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c
index 27f90b2139c0..b977ed85ff39 100644
--- a/drivers/net/r8169.c
+++ b/drivers/net/r8169.c
@@ -1473,8 +1473,8 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
1473 struct rtl8169_private *tp; 1473 struct rtl8169_private *tp;
1474 struct net_device *dev; 1474 struct net_device *dev;
1475 void __iomem *ioaddr; 1475 void __iomem *ioaddr;
1476 unsigned int i, pm_cap; 1476 unsigned int pm_cap;
1477 int rc; 1477 int i, rc;
1478 1478
1479 if (netif_msg_drv(&debug)) { 1479 if (netif_msg_drv(&debug)) {
1480 printk(KERN_INFO "%s Gigabit Ethernet driver %s loaded\n", 1480 printk(KERN_INFO "%s Gigabit Ethernet driver %s loaded\n",