aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index b77fd559c78e..a1b632713e43 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -901,9 +901,8 @@ static int copy_io(unsigned long clone_flags, struct task_struct *tsk)
901 * Share io context with parent, if CLONE_IO is set 901 * Share io context with parent, if CLONE_IO is set
902 */ 902 */
903 if (clone_flags & CLONE_IO) { 903 if (clone_flags & CLONE_IO) {
904 tsk->io_context = ioc_task_link(ioc); 904 ioc_task_link(ioc);
905 if (unlikely(!tsk->io_context)) 905 tsk->io_context = ioc;
906 return -ENOMEM;
907 } else if (ioprio_valid(ioc->ioprio)) { 906 } else if (ioprio_valid(ioc->ioprio)) {
908 new_ioc = get_task_io_context(tsk, GFP_KERNEL, NUMA_NO_NODE); 907 new_ioc = get_task_io_context(tsk, GFP_KERNEL, NUMA_NO_NODE);
909 if (unlikely(!new_ioc)) 908 if (unlikely(!new_ioc))