]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Use of uninitialized variable in drivers/net/depca.c
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 22 Mar 2006 21:49:48 +0000 (22:49 +0100)
committerJeff Garzik <jeff@garzik.org>
Thu, 23 Mar 2006 01:30:45 +0000 (20:30 -0500)
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 <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/depca.c

index 03804cc38be084f3ecb30a05518e9ea130520ebf..0941d40f046f326b84d68a84ca351398739d503a 100644 (file)
@@ -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;
        }