[PATCH 1/1] __init setup_early_printk: missing initialization

From: xypron . glpk
Date: Mon Jan 27 2014 - 13:12:21 EST


From: Heinrich Schuchardt <xypron.glpk@xxxxxx>

If is based on uninitialized value keep_early.
This leads to unpredictable result.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@xxxxxx>
---
arch/unicore32/kernel/early_printk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/unicore32/kernel/early_printk.c b/arch/unicore32/kernel/early_printk.c
index 9be0d5d..460a3b6 100644
--- a/arch/unicore32/kernel/early_printk.c
+++ b/arch/unicore32/kernel/early_printk.c
@@ -35,7 +35,7 @@ static struct console early_ocd_console = {

static int __init setup_early_printk(char *buf)
{
- int keep_early;
+ int keep_early = 0;

if (!buf || early_console)
return 0;
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/