Merge branch 'for-2.6.33' of git://git.kernel.dk/linux-2.6-block
[linux-2.6-block.git] / kernel / fork.c
index edeff9ceaab9d3237b9c344cb68795b8f797660e..1415dc4598aef6f1824382c3a4c5859d82e574fd 100644 (file)
@@ -1317,7 +1317,8 @@ bad_fork_free_pid:
        if (pid != &init_struct_pid)
                free_pid(pid);
 bad_fork_cleanup_io:
-       put_io_context(p->io_context);
+       if (p->io_context)
+               exit_io_context(p);
 bad_fork_cleanup_namespaces:
        exit_task_namespaces(p);
 bad_fork_cleanup_mm: