From: Eric Sesterhenn Date: Wed, 22 Mar 2006 21:49:48 +0000 (+0100) Subject: [PATCH] Use of uninitialized variable in drivers/net/depca.c X-Git-Tag: v2.6.17-rc1~1118^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a6bbd29a0284c1b9d33c324ba85f3ebb5509589;p=linux-2.6 [PATCH] 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. Signed-off-by: Eric Sesterhenn Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/depca.c b/drivers/net/depca.c index 03804cc38b..0941d40f04 100644 --- a/drivers/net/depca.c +++ b/drivers/net/depca.c @@ -1412,7 +1412,7 @@ static int __init depca_mca_probe(struct device *device) 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; }