diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index ded1972672a3..82a7948a664e 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1084,10 +1084,8 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1084 | goto bad_fork_cleanup_sighand; | 1084 | goto bad_fork_cleanup_sighand; |
1085 | if ((retval = copy_mm(clone_flags, p))) | 1085 | if ((retval = copy_mm(clone_flags, p))) |
1086 | goto bad_fork_cleanup_signal; | 1086 | goto bad_fork_cleanup_signal; |
1087 | if ((retval = copy_keys(clone_flags, p))) | ||
1088 | goto bad_fork_cleanup_mm; | ||
1089 | if ((retval = copy_namespaces(clone_flags, p))) | 1087 | if ((retval = copy_namespaces(clone_flags, p))) |
1090 | goto bad_fork_cleanup_keys; | 1088 | goto bad_fork_cleanup_mm; |
1091 | if ((retval = copy_io(clone_flags, p))) | 1089 | if ((retval = copy_io(clone_flags, p))) |
1092 | goto bad_fork_cleanup_namespaces; | 1090 | goto bad_fork_cleanup_namespaces; |
1093 | retval = copy_thread(0, clone_flags, stack_start, stack_size, p, regs); | 1091 | retval = copy_thread(0, clone_flags, stack_start, stack_size, p, regs); |
@@ -1252,8 +1250,6 @@ bad_fork_cleanup_io: | |||
1252 | put_io_context(p->io_context); | 1250 | put_io_context(p->io_context); |
1253 | bad_fork_cleanup_namespaces: | 1251 | bad_fork_cleanup_namespaces: |
1254 | exit_task_namespaces(p); | 1252 | exit_task_namespaces(p); |
1255 | bad_fork_cleanup_keys: | ||
1256 | exit_keys(p); | ||
1257 | bad_fork_cleanup_mm: | 1253 | bad_fork_cleanup_mm: |
1258 | if (p->mm) | 1254 | if (p->mm) |
1259 | mmput(p->mm); | 1255 | mmput(p->mm); |
@@ -1281,6 +1277,7 @@ bad_fork_cleanup_cgroup: | |||
1281 | bad_fork_cleanup_put_domain: | 1277 | bad_fork_cleanup_put_domain: |
1282 | module_put(task_thread_info(p)->exec_domain->module); | 1278 | module_put(task_thread_info(p)->exec_domain->module); |
1283 | bad_fork_cleanup_count: | 1279 | bad_fork_cleanup_count: |
1280 | atomic_dec(&p->cred->user->processes); | ||
1284 | put_cred(p->cred); | 1281 | put_cred(p->cred); |
1285 | bad_fork_free: | 1282 | bad_fork_free: |
1286 | free_task(p); | 1283 | free_task(p); |