aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/panic.c')
-rw-r--r--kernel/panic.c3
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
22int panic_on_oops; 23int panic_on_oops;
23int tainted; 24int tainted;
@@ -172,6 +173,7 @@ const char *print_tainted(void)
172 173
173void add_taint(unsigned flag) 174void 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}
177EXPORT_SYMBOL(add_taint); 179EXPORT_SYMBOL(add_taint);
@@ -256,6 +258,7 @@ int oops_may_print(void)
256 */ 258 */
257void oops_enter(void) 259void 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