]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we...
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 30 Oct 2012 01:36:45 +0000 (21:36 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 29 Nov 2012 02:49:03 +0000 (21:49 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/um/kernel/process.c

index b6d699cdd55789ae51229e6256609c406cd9f959..c502c804e8bb197407259091c7be39545b6526a8 100644 (file)
@@ -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)