dect
/
linux-2.6
Archived
13
0
Fork 0

[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 <davem@davemloft.net>
This commit is contained in:
David S. Miller 2008-04-03 15:07:24 -07:00
parent c819914e0d
commit 7c3cce978e
1 changed files with 1 additions and 1 deletions

View File

@ -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;