aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index ab7f29d906c7..d01a7514125b 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -279,6 +279,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
279 279
280 setup_thread_stack(tsk, orig); 280 setup_thread_stack(tsk, orig);
281 clear_user_return_notifier(tsk); 281 clear_user_return_notifier(tsk);
282 clear_tsk_need_resched(tsk);
282 stackend = end_of_stack(tsk); 283 stackend = end_of_stack(tsk);
283 *stackend = STACK_END_MAGIC; /* for overflow detection */ 284 *stackend = STACK_END_MAGIC; /* for overflow detection */
284 285