diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 067244495966..7d164e25b0f0 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -275,6 +275,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig) | |||
275 | 275 | ||
276 | setup_thread_stack(tsk, orig); | 276 | setup_thread_stack(tsk, orig); |
277 | clear_user_return_notifier(tsk); | 277 | clear_user_return_notifier(tsk); |
278 | clear_tsk_need_resched(tsk); | ||
278 | stackend = end_of_stack(tsk); | 279 | stackend = end_of_stack(tsk); |
279 | *stackend = STACK_END_MAGIC; /* for overflow detection */ | 280 | *stackend = STACK_END_MAGIC; /* for overflow detection */ |
280 | 281 | ||