diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 6023d150a305..e6c0f1a22914 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1311,7 +1311,9 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1311 | #endif | 1311 | #endif |
1312 | 1312 | ||
1313 | /* Perform scheduler related setup. Assign this task to a CPU. */ | 1313 | /* Perform scheduler related setup. Assign this task to a CPU. */ |
1314 | sched_fork(clone_flags, p); | 1314 | retval = sched_fork(clone_flags, p); |
1315 | if (retval) | ||
1316 | goto bad_fork_cleanup_policy; | ||
1315 | 1317 | ||
1316 | retval = perf_event_init_task(p); | 1318 | retval = perf_event_init_task(p); |
1317 | if (retval) | 1319 | if (retval) |