init/main.c: Give init_task a canary
[deliverable/linux.git] / arch / powerpc / mm / fault.c
index 51ab9e7e6c391b9497a08730a7b5e4c625c96304..35d0760c3fa44f46db3e25dc6efb454af0d7bf24 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/kprobes.h>
 #include <linux/kdebug.h>
 #include <linux/perf_event.h>
-#include <linux/magic.h>
 #include <linux/ratelimit.h>
 #include <linux/context_tracking.h>
 
@@ -538,7 +537,7 @@ void bad_page_fault(struct pt_regs *regs, unsigned long address, int sig)
                regs->nip);
 
        stackend = end_of_stack(current);
-       if (current != &init_task && *stackend != STACK_END_MAGIC)
+       if (*stackend != STACK_END_MAGIC)
                printk(KERN_ALERT "Thread overran stack, or stack corrupted\n");
 
        die("Kernel access of bad area", regs, sig);
This page took 0.025232 seconds and 5 git commands to generate.