aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-22 22:52:26 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-28 23:43:42 -0500
commit62e791c1b8ea481c72c299dee4f62c04aaef765c (patch)
tree6fca8f880b5cd3402743b374043a79b62c613979 /kernel
parentafa86fc426ff7e7f5477f15da9c405d08d5cf790 (diff)
don't pass regs to copy_process()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/fork.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index d96a562b1311..fa24a78b94f2 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1127,7 +1127,6 @@ static void posix_cpu_timers_init(struct task_struct *tsk)
1127 */ 1127 */
1128static struct task_struct *copy_process(unsigned long clone_flags, 1128static struct task_struct *copy_process(unsigned long clone_flags,
1129 unsigned long stack_start, 1129 unsigned long stack_start,
1130 struct pt_regs *regs,
1131 unsigned long stack_size, 1130 unsigned long stack_size,
1132 int __user *child_tidptr, 1131 int __user *child_tidptr,
1133 struct pid *pid, 1132 struct pid *pid,
@@ -1536,8 +1535,7 @@ struct task_struct * __cpuinit fork_idle(int cpu)
1536 struct task_struct *task; 1535 struct task_struct *task;
1537 struct pt_regs regs; 1536 struct pt_regs regs;
1538 1537
1539 task = copy_process(CLONE_VM, 0, idle_regs(&regs), 0, NULL, 1538 task = copy_process(CLONE_VM, 0, 0, NULL, &init_struct_pid, 0);
1540 &init_struct_pid, 0);
1541 if (!IS_ERR(task)) { 1539 if (!IS_ERR(task)) {
1542 init_idle_pids(task->pids); 1540 init_idle_pids(task->pids);
1543 init_idle(task, cpu); 1541 init_idle(task, cpu);
@@ -1596,7 +1594,7 @@ long do_fork(unsigned long clone_flags,
1596 trace = 0; 1594 trace = 0;
1597 } 1595 }
1598 1596
1599 p = copy_process(clone_flags, stack_start, regs, stack_size, 1597 p = copy_process(clone_flags, stack_start, stack_size,
1600 child_tidptr, NULL, trace); 1598 child_tidptr, NULL, trace);
1601 /* 1599 /*
1602 * Do this prior waking up the new thread - the thread pointer 1600 * Do this prior waking up the new thread - the thread pointer