Commit 7316512c authored by David S. Miller's avatar David S. Miller

[SPARC64]: Fix access_ok() args in sys_sparc32.c:get_tv32().

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9fab2278
......@@ -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)));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment