From 1a2fa330ec2a9f905e07b654620763ff6ac8cc75 Mon Sep 17 00:00:00 2001 From: Al Viro Date: Wed, 17 Oct 2012 02:28:39 -0400 Subject: [PATCH] um: don't bother copying registers in copy_thread() ... those are copied as part of p->thread already. Signed-off-by: Al Viro --- arch/um/kernel/process.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index b6d699cdd557..59ccd2f19f8f 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -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, ®s->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; -- 2.39.5