X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fpanic.c;h=d8a0bca21233e12d413fa9ab60c436b9b36e0db7;hb=f8872f4cb4b58f06a27d0443668d12d49f3b5d31;hp=cc2a4c9c36ac231781a41fba4031a17bc3b1f7e7;hpb=875999c5539999f61a45620aae0c3e5fb1d2b035;p=linux-2.6-omap-h63xx.git diff --git a/kernel/panic.c b/kernel/panic.c index cc2a4c9c36a..d8a0bca2123 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 @@ -173,6 +172,7 @@ const char *print_tainted(void) void add_taint(unsigned flag) { + debug_locks_off(); /* can't trust the integrity of the kernel anymore */ tainted |= flag; } EXPORT_SYMBOL(add_taint); @@ -257,6 +257,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(); }