From: Al Viro Date: Tue, 30 Oct 2012 01:36:45 +0000 (-0400) Subject: um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we... X-Git-Tag: next-20121105~7^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6bd73e7912151440d3e16e13b3e8fe7f7e37e357;p=karo-tx-linux.git um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we'll get Signed-off-by: Al Viro --- diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index b6d699cdd557..c502c804e8bb 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -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, ®s->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)