Skip to content

Commit 2b067fc

Browse files
author
Al Viro
committed
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>
1 parent 8cddebd commit 2b067fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/um/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
171171
p->thread = (struct thread_struct) INIT_THREAD;
172172

173173
if (!kthread) {
174-
memcpy(&p->thread.regs.regs, &regs->regs,
174+
memcpy(&p->thread.regs.regs, current_pt_regs(),
175175
sizeof(p->thread.regs.regs));
176176
PT_REGS_SET_SYSCALL_RETURN(&p->thread.regs, 0);
177177
if (sp != 0)

0 commit comments

Comments
 (0)