Skip to content

Commit b2ddedc

Browse files
author
Al Viro
committed
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>
1 parent a566c28 commit b2ddedc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/compat.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese,
10011001
sigset_from_compat(&s, &s32);
10021002

10031003
if (uts) {
1004-
if (get_compat_timespec(&t, uts))
1004+
if (compat_get_timespec(&t, uts))
10051005
return -EFAULT;
10061006
}
10071007

0 commit comments

Comments
 (0)