aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index e8e854a04ad2..a66fbde20715 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1006,6 +1006,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1006 * triggers too late. This doesn't hurt, the check is only there 1006 * triggers too late. This doesn't hurt, the check is only there
1007 * to stop root fork bombs. 1007 * to stop root fork bombs.
1008 */ 1008 */
1009 retval = -EAGAIN;
1009 if (nr_threads >= max_threads) 1010 if (nr_threads >= max_threads)
1010 goto bad_fork_cleanup_count; 1011 goto bad_fork_cleanup_count;
1011 1012
@@ -1094,7 +1095,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1094#ifdef CONFIG_DEBUG_MUTEXES 1095#ifdef CONFIG_DEBUG_MUTEXES
1095 p->blocked_on = NULL; /* not blocked yet */ 1096 p->blocked_on = NULL; /* not blocked yet */
1096#endif 1097#endif
1097 if (unlikely(ptrace_reparented(current))) 1098 if (unlikely(current->ptrace))
1098 ptrace_fork(p, clone_flags); 1099 ptrace_fork(p, clone_flags);
1099 1100
1100 /* Perform scheduler related setup. Assign this task to a CPU. */ 1101 /* Perform scheduler related setup. Assign this task to a CPU. */