Messages in this thread Patch in this message | | | Subject | [Patch] Use of uninitialized variable in drivers/net/depca.c | From | Eric Sesterhenn <> | Date | Wed, 22 Mar 2006 22:49:48 +0100 |
| |
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>
--- linux-2.6.16/drivers/net/depca.c.orig 2006-03-22 22:40:52.000000000 +0100 +++ linux-2.6.16/drivers/net/depca.c 2006-03-22 22:41:16.000000000 +0100 @@ -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; }
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |