Merge branch 'akpm' (Andrew's patch-bomb)
[linux-2.6-block.git] / kernel / fork.c
index 2254fbf23567c1e79d60556e4c970855337f8270..c55b61ab6d646c0dbbd3d9042bdc4da8405e1f38 100644 (file)
@@ -980,9 +980,8 @@ static int copy_io(unsigned long clone_flags, struct task_struct *tsk)
         * Share io context with parent, if CLONE_IO is set
         */
        if (clone_flags & CLONE_IO) {
-               tsk->io_context = ioc_task_link(ioc);
-               if (unlikely(!tsk->io_context))
-                       return -ENOMEM;
+               ioc_task_link(ioc);
+               tsk->io_context = ioc;
        } else if (ioprio_valid(ioc->ioprio)) {
                new_ioc = get_task_io_context(tsk, GFP_KERNEL, NUMA_NO_NODE);
                if (unlikely(!new_ioc))