Blackfin: announce current cpu rev when booting
[safe/jmp/linux-2.6] / kernel / fork.c
index edeff9c..1415dc4 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: