aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2012-12-24 12:31:00 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2012-12-26 01:15:03 -0500
commitb2ddedcd21f44a5873ee3d6ff6118a2318e01e18 (patch)
tree8ebc45893c633d451819ae6d2046cc8a4ae14446
parenta566c288826ad4502e43b59570214f18173d7744 (diff)
x32: fix sigtimedwait
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>
-rw-r--r--kernel/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/compat.c b/kernel/compat.c
index e5cc33c7122c..36700e9e2be9 100644
--- a/kernel/compat.c
+++ b/kernel/compat.c
@@ -1001,7 +1001,7 @@ compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese,
1001 sigset_from_compat(&s, &s32); 1001 sigset_from_compat(&s, &s32);
1002 1002
1003 if (uts) { 1003 if (uts) {
1004 if (get_compat_timespec(&t, uts)) 1004 if (compat_get_timespec(&t, uts))
1005 return -EFAULT; 1005 return -EFAULT;
1006 } 1006 }
1007 1007