public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] Use of uninitialized variable in drivers/net/depca.c
@ 2006-03-22 21:49 Eric Sesterhenn
  0 siblings, 0 replies; only message in thread
From: Eric Sesterhenn @ 2006-03-22 21:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: davies

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;
 	}
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-22 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-22 21:49 [Patch] Use of uninitialized variable in drivers/net/depca.c Eric Sesterhenn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox