diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/panic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/panic.c b/kernel/panic.c index ab13f0f668b5..d8a0bca21233 100644 --- a/kernel/panic.c +++ b/kernel/panic.c | |||
@@ -172,6 +172,7 @@ const char *print_tainted(void) | |||
172 | 172 | ||
173 | void add_taint(unsigned flag) | 173 | void add_taint(unsigned flag) |
174 | { | 174 | { |
175 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
175 | tainted |= flag; | 176 | tainted |= flag; |
176 | } | 177 | } |
177 | EXPORT_SYMBOL(add_taint); | 178 | EXPORT_SYMBOL(add_taint); |
@@ -256,6 +257,7 @@ int oops_may_print(void) | |||
256 | */ | 257 | */ |
257 | void oops_enter(void) | 258 | void oops_enter(void) |
258 | { | 259 | { |
260 | debug_locks_off(); /* can't trust the integrity of the kernel anymore */ | ||
259 | do_oops_enter_exit(); | 261 | do_oops_enter_exit(); |
260 | } | 262 | } |
261 | 263 | ||