]> Git Repo - linux.git/commitdiff
printk: Fix "printk: Enable the use of more than one CON_BOOT (early console)"
authorSonic Zhang <[email protected]>
Thu, 6 Aug 2009 22:58:11 +0000 (15:58 -0700)
committerIngo Molnar <[email protected]>
Sat, 8 Aug 2009 16:27:37 +0000 (18:27 +0200)
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 <[email protected]>
Signed-off-by: Robin Getz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/printk.c

index e0daaf57985a279a7fffec4c2969b4945a0048f2..e10d193a833a4c0076d5616c2ee2ba61bb7dbce1 100644 (file)
@@ -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;
This page took 0.059198 seconds and 4 git commands to generate.