X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fpanic.c;h=8010b9b17aca06eba731d72ec9b44f7144e45d3d;hb=1f38d61347203055b55e34083cce7a9cd8c529a9;hp=cc2a4c9c36ac231781a41fba4031a17bc3b1f7e7;hpb=3145012c1c34a3504a2234bd2034ca6ea4767bc5;p=linux-2.6-omap-h63xx.git diff --git a/kernel/panic.c b/kernel/panic.c index cc2a4c9c36a..8010b9b17ac 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,6 +18,7 @@ #include #include #include +#include int panic_on_oops; int tainted; @@ -173,6 +173,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 +258,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(); }