x32: fix sigtimedwait
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 24 Dec 2012 17:31:00 +0000 (12:31 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 26 Dec 2012 06:15:03 +0000 (01:15 -0500)
It needs 64bit timespec.  As it is, we end up truncating the timeout
to whole seconds; usually it doesn't matter, but for having all
sub-second timeouts truncated to one jiffy is visibly wrong.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/compat.c

index e5cc33c7122c2399f10085f5beff6afa61c0ae7f..36700e9e2be9125f976963cb1fca4316460dee00 100644 (file)
@@ -1001,7 +1001,7 @@ compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese,
        sigset_from_compat(&s, &s32);
 
        if (uts) {
-               if (get_compat_timespec(&t, uts))
+               if (compat_get_timespec(&t, uts))
                        return -EFAULT;
        }