summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/signal.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-04-07 17:36:37 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-07 17:36:37 +0200
commite1c287b992d30dab86f1b1bfe1780d9d3a652b34 (patch)
tree747f8c58550b21614a3f67d2e8cbc4ca5a817b66 /arch/sparc64/kernel/signal.c
parentMerge branch 'pci_id_updates' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
parent[SPARC64]: Fix user accesses in regset code. (diff)
downloadlinux-e1c287b992d30dab86f1b1bfe1780d9d3a652b34.tar.xz
linux-e1c287b992d30dab86f1b1bfe1780d9d3a652b34.zip
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: [SPARC64]: Fix user accesses in regset code. [SPARC64]: Fix FPU saving in 64-bit signal handling.
Diffstat (limited to 'arch/sparc64/kernel/signal.c')
-rw-r--r--arch/sparc64/kernel/signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/signal.c b/arch/sparc64/kernel/signal.c
index 94a9d64208ee..9d51956e8e2f 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;