Skip to content

Commit

Permalink
x32: fix sigtimedwait
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Al Viro committed Dec 26, 2012
1 parent a566c28 commit b2ddedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b2ddedc

Please sign in to comment.