Skip to content

Commit

Permalink
[SPARC64]: Fix FPU saving in 64-bit signal handling.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
davem330 committed Apr 3, 2008
1 parent c819914 commit 7c3cce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7c3cce9

Please sign in to comment.