[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1390846224-6995-1-git-send-email-xypron.glpk@gmx.de>
Date: Mon, 27 Jan 2014 19:10:24 +0100
From: xypron.glpk@....de
To: gxt@...c.pku.edu.cn
Cc: akpm@...ux-foundation.org, paul.gortmaker@...driver.com,
vapier@...too.org, totglx@...utronix.de,
linux-kernel@...r.kernel.org,
Heinrich Schuchardt <xypron.glpk@....de>
Subject: [PATCH 1/1] __init setup_early_printk: missing initialization
From: Heinrich Schuchardt <xypron.glpk@....de>
If is based on uninitialized value keep_early.
This leads to unpredictable result.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@....de>
---
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists