Commit 6a6bbd29 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Jeff Garzik

[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: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 5185c7c2
...@@ -1412,7 +1412,7 @@ static int __init depca_mca_probe(struct device *device) ...@@ -1412,7 +1412,7 @@ static int __init depca_mca_probe(struct device *device)
irq = 11; irq = 11;
break; break;
default: 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; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment