Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df818a52 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Fix 32bit thread coredumps



When a register set is passed in don't try to fix up the pointer.

Noticed by Al Viro

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d6ece549
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -217,8 +217,7 @@ elf_core_copy_task_fpregs(struct task_struct *tsk, struct pt_regs *regs, elf_fpr
	if (!tsk_used_math(tsk))
		return 0;
	if (!regs)
		regs = (struct pt_regs *)tsk->thread.rsp0;
	--regs;
		regs = ((struct pt_regs *)tsk->thread.rsp0) - 1;
	if (tsk == current)
		unlazy_fpu(tsk);
	set_fs(KERNEL_DS);