]> git.hungrycats.org Git - linux/commitdiff
[SPARC64]: Fix access_ok() args in sys_sparc32.c:get_tv32().
authorDavid S. Miller <davem@nuts.davemloft.net>
Thu, 17 Feb 2005 00:54:52 +0000 (16:54 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Thu, 17 Feb 2005 00:54:52 +0000 (16:54 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/sys_sparc32.c

index 49bb881db49dfb7928e2a610c852eeee2bae9b5e..1387cb677866e3d8b507277f8334941138646d00 100644 (file)
@@ -242,7 +242,7 @@ asmlinkage long sys32_getegid16(void)
 
 static long get_tv32(struct timeval *o, struct compat_timeval __user *i)
 {
-       return (!access_ok(VERIFY_READ, tv32, sizeof(*tv32)) ||
+       return (!access_ok(VERIFY_READ, i, sizeof(*i)) ||
                (__get_user(o->tv_sec, &i->tv_sec) |
                 __get_user(o->tv_usec, &i->tv_usec)));
 }