]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
um: don't bother copying registers in copy_thread()
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Oct 2012 06:28:39 +0000 (02:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Oct 2012 22:16:45 +0000 (18:16 -0400)
... those are copied as part of p->thread already.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/um/kernel/process.c

index b6d699cdd55789ae51229e6256609c406cd9f959..59ccd2f19f8f16ea9266139b10d623fcb33e085a 100644 (file)
@@ -171,8 +171,6 @@ 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,
-                      sizeof(p->thread.regs.regs));
                PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0);
                if (sp != 0)
                        REGS_SP(p->thread.regs.regs.gp) = sp;