Skip to content

Commit 62e791c

Browse files
author
Al Viro
committed
don't pass regs to copy_process()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent afa86fc commit 62e791c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎kernel/fork.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,6 @@ static void posix_cpu_timers_init(struct task_struct *tsk)
11271127
*/
11281128
static struct task_struct *copy_process(unsigned long clone_flags,
11291129
unsigned long stack_start,
1130-
struct pt_regs *regs,
11311130
unsigned long stack_size,
11321131
int __user *child_tidptr,
11331132
struct pid *pid,
@@ -1536,8 +1535,7 @@ struct task_struct * __cpuinit fork_idle(int cpu)
15361535
struct task_struct *task;
15371536
struct pt_regs regs;
15381537

1539-
task = copy_process(CLONE_VM, 0, idle_regs(&regs), 0, NULL,
1540-
&init_struct_pid, 0);
1538+
task = copy_process(CLONE_VM, 0, 0, NULL, &init_struct_pid, 0);
15411539
if (!IS_ERR(task)) {
15421540
init_idle_pids(task->pids);
15431541
init_idle(task, cpu);
@@ -1596,7 +1594,7 @@ long do_fork(unsigned long clone_flags,
15961594
trace = 0;
15971595
}
15981596

1599-
p = copy_process(clone_flags, stack_start, regs, stack_size,
1597+
p = copy_process(clone_flags, stack_start, stack_size,
16001598
child_tidptr, NULL, trace);
16011599
/*
16021600
* Do this prior waking up the new thread - the thread pointer

0 commit comments

Comments
 (0)