]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/x86/mm/fault.c
x86: Suppress stack overrun message for init_task
[~shefty/rdma-dev.git] / arch / x86 / mm / fault.c
index f4cee9028cf0b01e11951662b625f63371f627e6..071eee6041473d7f5da261f07aaad322067bb828 100644 (file)
@@ -658,7 +658,7 @@ no_context(struct pt_regs *regs, unsigned long error_code,
        show_fault_oops(regs, error_code, address);
 
        stackend = end_of_stack(tsk);
-       if (*stackend != STACK_END_MAGIC)
+       if (tsk != &init_task && *stackend != STACK_END_MAGIC)
                printk(KERN_ALERT "Thread overran stack, or stack corrupted\n");
 
        tsk->thread.cr2         = address;