aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/fork.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index f942a33d4c6..03fcb141044 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -49,6 +49,7 @@
49#include <linux/audit.h> 49#include <linux/audit.h>
50#include <linux/memcontrol.h> 50#include <linux/memcontrol.h>
51#include <linux/ftrace.h> 51#include <linux/ftrace.h>
52#include <linux/proc_fs.h>
52#include <linux/profile.h> 53#include <linux/profile.h>
53#include <linux/rmap.h> 54#include <linux/rmap.h>
54#include <linux/ksm.h> 55#include <linux/ksm.h>
@@ -1383,6 +1384,8 @@ bad_fork_cleanup_io:
1383 if (p->io_context) 1384 if (p->io_context)
1384 exit_io_context(p); 1385 exit_io_context(p);
1385bad_fork_cleanup_namespaces: 1386bad_fork_cleanup_namespaces:
1387 if (unlikely(clone_flags & CLONE_NEWPID))
1388 pid_ns_release_proc(p->nsproxy->pid_ns);
1386 exit_task_namespaces(p); 1389 exit_task_namespaces(p);
1387bad_fork_cleanup_mm: 1390bad_fork_cleanup_mm:
1388 if (p->mm) { 1391 if (p->mm) {