um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we'll get

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2012-10-29 21:36:45 -04:00
parent 8cddebd767
commit 2b067fc9dd
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
p->thread = (struct thread_struct) INIT_THREAD; p->thread = (struct thread_struct) INIT_THREAD;
if (!kthread) { if (!kthread) {
memcpy(&p->thread.regs.regs, &regs->regs, memcpy(&p->thread.regs.regs, current_pt_regs(),
sizeof(p->thread.regs.regs)); sizeof(p->thread.regs.regs));
PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0); PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0);
if (sp != 0) if (sp != 0)