From: David S. Miller Date: Thu, 3 Apr 2008 22:07:24 +0000 (-0700) Subject: [SPARC64]: Fix FPU saving in 64-bit signal handling. X-Git-Tag: v2.6.25-rc9~54^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7c3cce978e4f933ac13758ec5d2554fc8d0927d2;p=linux-2.6-omap-h63xx.git [SPARC64]: Fix FPU saving in 64-bit signal handling. The calculation of the FPU reg save area pointer was wrong. Based upon an OOPS report from Tom Callaway. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/signal.c b/arch/sparc64/kernel/signal.c index 94a9d64208e..9d51956e8e2 100644 --- a/arch/sparc64/kernel/signal.c +++ b/arch/sparc64/kernel/signal.c @@ -357,7 +357,7 @@ static int invalid_frame_pointer(void __user *fp, int fplen) static inline int save_fpu_state(struct pt_regs *regs, __siginfo_fpu_t __user *fpu) { - unsigned long *fpregs = (unsigned long *)(regs+1); + unsigned long *fpregs = current_thread_info()->fpregs; unsigned long fprs; int err = 0;