summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-03-15 18:05:43 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-03-15 18:05:43 +0000
commit11c9d7ae6547f6761beedd9b4b961ac0a99b589c (patch)
treebe2e552f42616d2143f0a0301a4156730e9dba51 /arch
parent24e4a693f41a00e1a497e250a3fcb65c6e62389c (diff)
Fix minor bug in sys32_wait4() before it escapes my attention.
Diffstat (limited to 'arch')
-rw-r--r--arch/mips64/kernel/linux32.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips64/kernel/linux32.c b/arch/mips64/kernel/linux32.c
index b1b161348..f23e8424a 100644
--- a/arch/mips64/kernel/linux32.c
+++ b/arch/mips64/kernel/linux32.c
@@ -1,4 +1,4 @@
-/* $Id: linux32.c,v 1.8 2000/03/14 19:28:12 ulfc Exp $
+/* $Id: linux32.c,v 1.9 2000/03/15 02:36:21 kanoj Exp $
*
* Conversion between 32-bit and 64-bit native system calls.
*
@@ -545,8 +545,10 @@ sys32_wait4(__kernel_pid_t32 pid, unsigned int *stat_addr, int options,
int ret;
unsigned int status;
mm_segment_t old_fs = get_fs();
-
+
+ set_fs(KERNEL_DS);
ret = sys_wait4(pid, stat_addr ? &status : NULL, options, &r);
+ set_fs(old_fs);
if (put_rusage (ru, &r)) return -EFAULT;
if (stat_addr && put_user (status, stat_addr))
return -EFAULT;