提交 2b067fc9 编写于 作者: A Al Viro

um: don't bother looking at regs in copy_thread() - current_pt_regs() is what we'll get

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 8cddebd7
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册