[PATCH][COMPAT] {get,put}_compat_timspec 7/8 mips64

From: Stephen Rothwell (sfr@canb.auug.org.au)
Date: Wed Jan 08 2003 - 07:10:05 EST


Hi Ralf,

Here is the mips64 part.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.54-200301081106-32bit.2/arch/mips64/kernel/linux32.c 2.5.54-200301081106-32bit.3/arch/mips64/kernel/linux32.c --- 2.5.54-200301081106-32bit.2/arch/mips64/kernel/linux32.c 2003-01-08 12:04:15.000000000 +1100 +++ 2.5.54-200301081106-32bit.3/arch/mips64/kernel/linux32.c 2003-01-08 17:09:19.000000000 +1100 @@ -1086,8 +1086,7 @@ set_fs (KERNEL_DS); ret = sys_sched_rr_get_interval(pid, &t); set_fs (old_fs); - if (put_user (t.tv_sec, &interval->tv_sec) || - __put_user (t.tv_nsec, &interval->tv_nsec)) + if (put_compat_timespec(&t, interval)) return -EFAULT; return ret; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 15 2003 - 22:00:23 EST