Skip to contentSkip to conversation

Use of uninitialized variable in drivers/net/depca.c

PATCH New Eric Sesterhenn 1 participant 1 message Mar 22, 2006 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use of uninitialized variable in drivers/net/depca.c

hi,

this fixes coverity bug #888, where the variable dev is used uninitialized. I assume the programmer meant to use mdev, which is initialized. Compile tested only.

drivers/net/depca.c renamed from drivers/net/depca.c.orig +1 -1
@@ -1412,7 +1412,7 @@ static int __init depca_mca_probe(struct
 		irq = 11;
 		break;
 	default:
-		printk("%s: mca_probe IRQ error.  You should never get here (%d).\n", dev->name, where);
+		printk("%s: mca_probe IRQ error.  You should never get here (%d).\n", mdev->name, where);
 		return -EINVAL;
 	}