aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 5a5d6fef341d..228f80c9155a 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1107,6 +1107,12 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1107 if (clone_flags & CLONE_THREAD) 1107 if (clone_flags & CLONE_THREAD)
1108 p->tgid = current->tgid; 1108 p->tgid = current->tgid;
1109 1109
1110 if (current->nsproxy != p->nsproxy) {
1111 retval = ns_cgroup_clone(p, pid);
1112 if (retval)
1113 goto bad_fork_free_pid;
1114 }
1115
1110 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL; 1116 p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL;
1111 /* 1117 /*
1112 * Clear TID on mm_release()? 1118 * Clear TID on mm_release()?