lkml.org 
[lkml]   [2014]   [Jan]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] __init setup_early_printk: missing initialization
Date
From: Heinrich Schuchardt <xypron.glpk@gmx.de>

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

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.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


\
 
 \ /
  Last update: 2014-01-27 20:01    [W:0.040 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site