mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
This commit is contained in:
parent
5185c7c20a
commit
6a6bbd29a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue