]> git.hungrycats.org Git - linux/commitdiff
[PATCH] pass panic message to panic notifier chain
authorJeff Dike <jdike@karaya.com>
Mon, 15 Jul 2002 06:06:06 +0000 (23:06 -0700)
committerJeff Dike <jdike@karaya.com>
Mon, 15 Jul 2002 06:06:06 +0000 (23:06 -0700)
 This is needed for things running on the host which want to know when UML
 panics, and what the panic message was.

kernel/panic.c

index 84adabf00cf5397ad4542f3d7af10cb1251437c4..5281e7cce9f827f54141d06eb6f049eda06e8a30 100644 (file)
@@ -66,7 +66,7 @@ NORET_TYPE void panic(const char * fmt, ...)
        smp_send_stop();
 #endif
 
-       notifier_call_chain(&panic_notifier_list, 0, NULL);
+       notifier_call_chain(&panic_notifier_list, 0, buf);
 
        if (panic_timeout > 0)
        {