From caae231caa2e7dd2d66fb1f30520620a1dad69f9 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 3 Jul 1998 23:05:37 +0000 Subject: Fix for kernel bug tracked down by Thomas Bogendoerfer. --- arch/mips/kernel/signal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/mips') 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(®s); 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(®s); uset = (sigset_t *) regs.regs[4]; if (copy_from_user(&newset, uset, sizeof(sigset_t))) return -EFAULT; -- cgit v1.2.3