aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index d2f4a420a5b9..984d259e172d 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1041,7 +1041,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1041 goto bad_fork_cleanup_put_domain; 1041 goto bad_fork_cleanup_put_domain;
1042 1042
1043 if (pid != &init_struct_pid) { 1043 if (pid != &init_struct_pid) {
1044 pid = alloc_pid(); 1044 pid = alloc_pid(task_active_pid_ns(p));
1045 if (!pid) 1045 if (!pid)
1046 goto bad_fork_put_binfmt_module; 1046 goto bad_fork_put_binfmt_module;
1047 } 1047 }