提交 42c2c8c8 编写于 作者: S Sonic Zhang 提交者: Ingo Molnar

printk: Fix "printk: Enable the use of more than one CON_BOOT (early console)"

Don't return when we find the first bootconsole - it can leave
other bootconsoles still installed, and they can be used and
cause problems later (if they are in the init section, and
eventually released), and cause problems.  Make sure we remove
all of them.
Signed-off-by: NSonic Zhang <Sonic.Zhang@analog.com>
Signed-off-by: NRobin Getz <rgetz@analog.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 1aaad49e
......@@ -1352,7 +1352,7 @@ static int __init disable_boot_consoles(void)
if (con->flags & CON_BOOT) {
printk(KERN_INFO "turn off boot console %s%d\n",
con->name, con->index);
return unregister_console(con);
unregister_console(con);
}
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册