summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-10-30 02:36:45 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2012-11-29 03:49:03 +0100
commit2b067fc9dd143be5e0ee94bae0fbd28ea0a407f8 (patch)
treee5fe8f5e28c2c86e55d598b93ab6f6e78e8224b4 /arch
parentum: don't bother with passing sp to do_fork() for fork(2)/vfork(2) (diff)
downloadlinux-2b067fc9dd143be5e0ee94bae0fbd28ea0a407f8.tar.xz
linux-2b067fc9dd143be5e0ee94bae0fbd28ea0a407f8.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/kernel/process.c2
1 files changed, 1 insertions, 1 deletions
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, &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)