diff options
Diffstat (limited to 'arch/x86/mm/fault.c')
-rw-r--r-- | arch/x86/mm/fault.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index a24194681513..bc23a7043c65 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c | |||
@@ -3,7 +3,6 @@ | |||
3 | * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. | 3 | * Copyright (C) 2001, 2002 Andi Kleen, SuSE Labs. |
4 | * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar | 4 | * Copyright (C) 2008-2009, Red Hat Inc., Ingo Molnar |
5 | */ | 5 | */ |
6 | #include <linux/magic.h> /* STACK_END_MAGIC */ | ||
7 | #include <linux/sched.h> /* test_thread_flag(), ... */ | 6 | #include <linux/sched.h> /* test_thread_flag(), ... */ |
8 | #include <linux/kdebug.h> /* oops_begin/end, ... */ | 7 | #include <linux/kdebug.h> /* oops_begin/end, ... */ |
9 | #include <linux/module.h> /* search_exception_table */ | 8 | #include <linux/module.h> /* search_exception_table */ |
@@ -710,7 +709,7 @@ no_context(struct pt_regs *regs, unsigned long error_code, | |||
710 | show_fault_oops(regs, error_code, address); | 709 | show_fault_oops(regs, error_code, address); |
711 | 710 | ||
712 | stackend = end_of_stack(tsk); | 711 | stackend = end_of_stack(tsk); |
713 | if (tsk != &init_task && *stackend != STACK_END_MAGIC) | 712 | if (*stackend != STACK_END_MAGIC) |
714 | printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); | 713 | printk(KERN_EMERG "Thread overran stack, or stack corrupted\n"); |
715 | 714 | ||
716 | tsk->thread.cr2 = address; | 715 | tsk->thread.cr2 = address; |