Skip to content

Commit

Permalink
um: don't bother looking at regs in copy_thread() - current_pt_regs()…
Browse files Browse the repository at this point in the history
… is what we'll get

Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Nov 29, 2012
1 parent 8cddebd commit 2b067fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
p->thread = (struct thread_struct) INIT_THREAD;

if (!kthread) {
memcpy(&p->thread.regs.regs, &regs->regs,
memcpy(&p->thread.regs.regs, current_pt_regs(),
sizeof(p->thread.regs.regs));
PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0);
if (sp != 0)
Expand Down

0 comments on commit 2b067fc

Please sign in to comment.