diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index fc723e595cd5..4cf868458f06 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1265,7 +1265,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1265 | return p; | 1265 | return p; |
1266 | 1266 | ||
1267 | bad_fork_cleanup_namespaces: | 1267 | bad_fork_cleanup_namespaces: |
1268 | exit_task_namespaces(p); | 1268 | put_and_finalize_nsproxy(p->nsproxy); |
1269 | bad_fork_cleanup_keys: | 1269 | bad_fork_cleanup_keys: |
1270 | exit_keys(p); | 1270 | exit_keys(p); |
1271 | bad_fork_cleanup_mm: | 1271 | bad_fork_cleanup_mm: |
@@ -1711,7 +1711,7 @@ asmlinkage long sys_unshare(unsigned long unshare_flags) | |||
1711 | } | 1711 | } |
1712 | 1712 | ||
1713 | if (new_nsproxy) | 1713 | if (new_nsproxy) |
1714 | put_nsproxy(new_nsproxy); | 1714 | put_and_finalize_nsproxy(new_nsproxy); |
1715 | 1715 | ||
1716 | bad_unshare_cleanup_ipc: | 1716 | bad_unshare_cleanup_ipc: |
1717 | if (new_ipc) | 1717 | if (new_ipc) |