diff options
-rw-r--r-- | kernel/fork.c | 3 |
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); |
1385 | bad_fork_cleanup_namespaces: | 1386 | bad_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); |
1387 | bad_fork_cleanup_mm: | 1390 | bad_fork_cleanup_mm: |
1388 | if (p->mm) { | 1391 | if (p->mm) { |