summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-07-03 23:05:37 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-07-03 23:05:37 +0000
commitcaae231caa2e7dd2d66fb1f30520620a1dad69f9 (patch)
tree21c564c90906ca7298f426f2a9daf87758a0b81b
parent3917ac5846dd0f9ad1238166f90caab9912052e6 (diff)
Fix for kernel bug tracked down by Thomas Bogendoerfer.
-rw-r--r--arch/mips/kernel/signal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c
index 954e8bfb0..25ea964d7 100644
--- a/arch/mips/kernel/signal.c
+++ b/arch/mips/kernel/signal.c
@@ -4,7 +4,7 @@
* Copyright (C) 1991, 1992 Linus Torvalds
* Copyright (C) 1994, 1995, 1996 Ralf Baechle
*
- * $Id: signal.c,v 1.11 1998/03/27 04:47:55 ralf Exp $
+ * $Id: signal.c,v 1.12 1998/04/05 11:23:53 ralf Exp $
*
* XXX Handle lazy fp context switches correctly.
*/
@@ -43,6 +43,7 @@ sys_sigsuspend(struct pt_regs regs)
{
sigset_t *uset, saveset, newset;
+ save_static(&regs);
uset = (sigset_t *) regs.regs[4];
if (copy_from_user(&newset, uset, sizeof(sigset_t)))
return -EFAULT;
@@ -67,6 +68,7 @@ sys_rt_sigsuspend(struct pt_regs regs)
{
sigset_t *uset, saveset, newset;
+ save_static(&regs);
uset = (sigset_t *) regs.regs[4];
if (copy_from_user(&newset, uset, sizeof(sigset_t)))
return -EFAULT;