From: dwalker@mvista.com
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH -mm] console: console_drivers not initialized
Date: Mon, 25 Sep 2006 14:07:10 -0700 [thread overview]
Message-ID: <20060925210710.931336000@mvista.com> (raw)
I was doing -rt stuff on a PPC PowerBook G4. It would always reboot
itself when it hit console_init() .
I noticed that the console code seems to want console_drivers = NULL,
but it never actually sets it that way. Once I added this, the reboot
issue was gone..
Signed-Off-By: Daniel Walker <dwalker@mvista.com>
Index: linux-2.6.18/kernel/printk.c
===================================================================
--- linux-2.6.18.orig/kernel/printk.c
+++ linux-2.6.18/kernel/printk.c
@@ -68,7 +68,7 @@ EXPORT_SYMBOL(oops_in_progress);
*/
static DECLARE_MUTEX(console_sem);
static DECLARE_MUTEX(secondary_console_sem);
-struct console *console_drivers;
+struct console *console_drivers = NULL;
/*
* This is used for debugging the mess that is the VT code by
* keeping track if we have the console semaphore held. It's
--
next reply other threads:[~2006-09-25 21:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-25 21:07 dwalker [this message]
2006-09-25 21:11 ` Russell King
2006-09-25 21:26 ` Daniel Walker
2006-09-25 21:30 ` Russell King
2006-09-25 21:42 ` Andrew Morton
2006-09-26 5:13 ` Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060925210710.931336000@mvista.com \
--to=dwalker@mvista.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®