From 11c9d7ae6547f6761beedd9b4b961ac0a99b589c Mon Sep 17 00:00:00 2001 From: Kanoj Sarcar Date: Wed, 15 Mar 2000 18:05:43 +0000 Subject: Fix minor bug in sys32_wait4() before it escapes my attention. --- arch/mips64/kernel/linux32.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'arch') 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; -- cgit v1.2.3