Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Francois Romieu and committed by
Linus Torvalds
315917d2 af768c67

+2 -2
+2 -2
drivers/net/r8169.c
··· 1473 1473 struct rtl8169_private *tp; 1474 1474 struct net_device *dev; 1475 1475 void __iomem *ioaddr; 1476 - unsigned int i, pm_cap; 1477 - int rc; 1476 + unsigned int pm_cap; 1477 + int i, rc; 1478 1478 1479 1479 if (netif_msg_drv(&debug)) { 1480 1480 printk(KERN_INFO "%s Gigabit Ethernet driver %s loaded\n",