Title: [7041] trunk/kernel/printk.c: Fix bug[#5323] disable all boot consoles instead of only one
- Revision
- 7041
- Author
- sonicz
- Date
- 2009-07-20 05:55:23 -0500 (Mon, 20 Jul 2009)
Log Message
Fix bug[#5323] disable all boot consoles instead of only one
in disable_boot_consoles().
Modified Paths
Diff
Modified: trunk/kernel/printk.c (7040 => 7041)
--- trunk/kernel/printk.c 2009-07-20 10:54:24 UTC (rev 7040)
+++ trunk/kernel/printk.c 2009-07-20 10:55:23 UTC (rev 7041)
@@ -1309,15 +1309,18 @@
static int __init disable_boot_consoles(void)
{
struct console *con;
+ int ret = 0;
for_each_console(con) {
if (con->flags & CON_BOOT) {
printk(KERN_INFO "turn off boot console %s%d\n",
con->name, con->index);
- return unregister_console(con);
+ ret = unregister_console(con);
+ if (ret)
+ break;
}
}
- return 0;
+ return ret;
}
late_initcall(disable_boot_consoles);
_______________________________________________
Linux-kernel-commits mailing list
Linux-kernel-commits@blackfin.uclinux.org
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits