X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fpanic.c;h=d2db3e2209e0e20ae64f8c1537a09a048e95edfe;hb=8da5adda91df3d2fcc5300e68da491694c9af019;hp=cc2a4c9c36ac231781a41fba4031a17bc3b1f7e7;hpb=63518472c05a351d779f35803e6ccfb361ae630a;p=linux-2.6 diff --git a/kernel/panic.c b/kernel/panic.c index cc2a4c9c36..d2db3e2209 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -8,7 +8,6 @@ * This function is used through-out the kernel (including mm and fs) * to indicate a major problem. */ -#include #include #include #include @@ -19,8 +18,10 @@ #include #include #include +#include int panic_on_oops; +int panic_on_unrecovered_nmi; int tainted; static int pause_on_oops; static int pause_on_oops_flag; @@ -173,6 +174,7 @@ const char *print_tainted(void) void add_taint(unsigned flag) { + debug_locks = 0; /* can't trust the integrity of the kernel anymore */ tainted |= flag; } EXPORT_SYMBOL(add_taint); @@ -257,6 +259,7 @@ int oops_may_print(void) */ void oops_enter(void) { + debug_locks_off(); /* can't trust the integrity of the kernel anymore */ do_oops_enter_exit(); }