diff options
Diffstat (limited to 'kernel/panic.c')
-rw-r--r-- | kernel/panic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index ab13f0f668b5..9b8dcfd1ca93 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include <linux/interrupt.h> | 18 | #include <linux/interrupt.h> |
19 | #include <linux/nmi.h> | 19 | #include <linux/nmi.h> |
20 | #include <linux/kexec.h> | 20 | #include <linux/kexec.h> |
21 | #include <linux/debug_locks.h> | ||
21 | 22 | ||
22 | int panic_on_oops; | 23 | int panic_on_oops; |
23 | int tainted; | 24 | int tainted; |
@@ -172,6 +173,7 @@ const char *print_tainted(void) | |||
172 | 173 | ||
173 | void add_taint(unsigned flag) | 174 | void add_taint(unsigned flag) |
174 | { | 175 | { |
176 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
175 | tainted |= flag; | 177 | tainted |= flag; |
176 | } | 178 | } |
177 | EXPORT_SYMBOL(add_taint); | 179 | EXPORT_SYMBOL(add_taint); |
@@ -256,6 +258,7 @@ int oops_may_print(void) | |||
256 | */ | 258 | */ |
257 | void oops_enter(void) | 259 | void oops_enter(void) |
258 | { | 260 | { |
261 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
259 | do_oops_enter_exit(); | 262 | do_oops_enter_exit(); |
260 | } | 263 | } |
261 | 264 | ||