Commit bf115e8a authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Torvalds

[PATCH] panic_blink and i8042 unloading

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.
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0e879ae6
......@@ -42,7 +42,7 @@ static long no_blink(long time)
}
/* Returns how long it waited in ms */
long (*panic_blink)(long time) = no_blink;
long (*panic_blink)(long time);
EXPORT_SYMBOL(panic_blink);
/**
......@@ -77,6 +77,9 @@ NORET_TYPE void panic(const char * fmt, ...)
notifier_call_chain(&panic_notifier_list, 0, buf);
if (!panic_blink)
panic_blink = no_blink;
if (panic_timeout > 0)
{
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment