diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index edeff9ceaab9..1415dc4598ae 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1317,7 +1317,8 @@ bad_fork_free_pid: | |||
1317 | if (pid != &init_struct_pid) | 1317 | if (pid != &init_struct_pid) |
1318 | free_pid(pid); | 1318 | free_pid(pid); |
1319 | bad_fork_cleanup_io: | 1319 | bad_fork_cleanup_io: |
1320 | put_io_context(p->io_context); | 1320 | if (p->io_context) |
1321 | exit_io_context(p); | ||
1321 | bad_fork_cleanup_namespaces: | 1322 | bad_fork_cleanup_namespaces: |
1322 | exit_task_namespaces(p); | 1323 | exit_task_namespaces(p); |
1323 | bad_fork_cleanup_mm: | 1324 | bad_fork_cleanup_mm: |