Skip to content

Commit

Permalink
printk: Fix "printk: Enable the use of more than one CON_BOOT (early …
Browse files Browse the repository at this point in the history
…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: Sonic Zhang <Sonic.Zhang@analog.com>
Signed-off-by: Robin Getz <rgetz@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Sonic Zhang authored and Ingo Molnar committed Aug 8, 2009
1 parent 1aaad49 commit 42c2c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 42c2c8c

Please sign in to comment.