From: Dmitry Torokhov <dtor_core@ameritech.net>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>, Andi Kleen <ak@suse.de>
Subject: [PATCH] panic_blink and i8042 unloading
Date: Sun, 7 Nov 2004 01:34:31 -0500 [thread overview]
Message-ID: <200411070134.31775.dtor_core@ameritech.net> (raw)
Hi,
At unload i8042 sets panic_blink to 0. This will cause problems if kernel
panics later as it will just use it assuming that the pointer is correct.
Please consider the patch below that checks if panic_blink is NULL right
in panic() and sets it to no_blink instead.
--
Dmitry
===================================================================
ChangeSet@1.1956, 2004-11-06 22:53:46-05:00, dtor_core@ameritech.net
If panic_blink is NULL set it to no_blink before using.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
panic.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
===================================================================
diff -Nru a/kernel/panic.c b/kernel/panic.c
--- a/kernel/panic.c 2004-11-07 01:31:36 -05:00
+++ b/kernel/panic.c 2004-11-07 01:31:36 -05:00
@@ -42,7 +42,7 @@
}
/* Returns how long it waited in ms */
-long (*panic_blink)(long time) = no_blink;
+long (*panic_blink)(long time);
EXPORT_SYMBOL(panic_blink);
/**
@@ -75,7 +75,10 @@
smp_send_stop();
#endif
- notifier_call_chain(&panic_notifier_list, 0, buf);
+ notifier_call_chain(&panic_notifier_list, 0, buf);
+
+ if (!panic_blink)
+ panic_blink = no_blink;
if (panic_timeout > 0)
{
next reply other threads:[~2004-11-07 6:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-07 6:34 Dmitry Torokhov [this message]
2004-11-07 10:14 ` [PATCH] panic_blink and i8042 unloading Andi Kleen
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=200411070134.31775.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=ak@suse.de \
--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