diff options
Diffstat (limited to 'kernel/panic.c')
-rw-r--r-- | kernel/panic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index cc2a4c9c36ac..d8a0bca21233 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * This function is used through-out the kernel (including mm and fs) | 8 | * This function is used through-out the kernel (including mm and fs) |
9 | * to indicate a major problem. | 9 | * to indicate a major problem. |
10 | */ | 10 | */ |
11 | #include <linux/config.h> | ||
12 | #include <linux/module.h> | 11 | #include <linux/module.h> |
13 | #include <linux/sched.h> | 12 | #include <linux/sched.h> |
14 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
@@ -173,6 +172,7 @@ const char *print_tainted(void) | |||
173 | 172 | ||
174 | void add_taint(unsigned flag) | 173 | void add_taint(unsigned flag) |
175 | { | 174 | { |
175 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
176 | tainted |= flag; | 176 | tainted |= flag; |
177 | } | 177 | } |
178 | EXPORT_SYMBOL(add_taint); | 178 | EXPORT_SYMBOL(add_taint); |
@@ -257,6 +257,7 @@ int oops_may_print(void) | |||
257 | */ | 257 | */ |
258 | void oops_enter(void) | 258 | void oops_enter(void) |
259 | { | 259 | { |
260 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
260 | do_oops_enter_exit(); | 261 | do_oops_enter_exit(); |
261 | } | 262 | } |
262 | 263 | ||