]> Pileus Git - ~andy/linux/blobdiff - kernel/fork.c
x86, mce: implement dynamic machine check banks support
[~andy/linux] / kernel / fork.c
index 242a706e77218073f74b9b8aa44ca589aaa1cbf4..43c039d55e95d91dd2dafe3b2cf9f9cab4cc43c0 100644 (file)
@@ -1093,7 +1093,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
 #ifdef CONFIG_DEBUG_MUTEXES
        p->blocked_on = NULL; /* not blocked yet */
 #endif
-       if (unlikely(ptrace_reparented(current)))
+       if (unlikely(current->ptrace))
                ptrace_fork(p, clone_flags);
 
        /* Perform scheduler related setup. Assign this task to a CPU. */