diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-21 10:12:39 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-05-21 10:12:39 -0400 |
commit | b3f87b98aa3dc22cc58f970140113b270015cddb (patch) | |
tree | c4aec5996567ad96310f61e9244e799f41bf2625 /kernel/fork.c | |
parent | 041245c88a29273788e8eff1353bc6e1f56c61df (diff) | |
parent | 1afeaf5c29aa07db25760d2fbed5c08a3aec3498 (diff) |
Merge branch 'bugfixes' into nfs-for-next
Diffstat (limited to 'kernel/fork.c')
-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 b9372a0bff18..687a15d56243 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <linux/audit.h> | 47 | #include <linux/audit.h> |
48 | #include <linux/memcontrol.h> | 48 | #include <linux/memcontrol.h> |
49 | #include <linux/ftrace.h> | 49 | #include <linux/ftrace.h> |
50 | #include <linux/proc_fs.h> | ||
50 | #include <linux/profile.h> | 51 | #include <linux/profile.h> |
51 | #include <linux/rmap.h> | 52 | #include <linux/rmap.h> |
52 | #include <linux/ksm.h> | 53 | #include <linux/ksm.h> |
@@ -1464,6 +1465,8 @@ bad_fork_cleanup_io: | |||
1464 | if (p->io_context) | 1465 | if (p->io_context) |
1465 | exit_io_context(p); | 1466 | exit_io_context(p); |
1466 | bad_fork_cleanup_namespaces: | 1467 | bad_fork_cleanup_namespaces: |
1468 | if (unlikely(clone_flags & CLONE_NEWPID)) | ||
1469 | pid_ns_release_proc(p->nsproxy->pid_ns); | ||
1467 | exit_task_namespaces(p); | 1470 | exit_task_namespaces(p); |
1468 | bad_fork_cleanup_mm: | 1471 | bad_fork_cleanup_mm: |
1469 | if (p->mm) | 1472 | if (p->mm) |