mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 03:43:03 +00:00
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>
This commit is contained in:
parent
a566c28882
commit
b2ddedcd21
|
@ -1001,7 +1001,7 @@ compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese,
|
||||||
sigset_from_compat(&s, &s32);
|
sigset_from_compat(&s, &s32);
|
||||||
|
|
||||||
if (uts) {
|
if (uts) {
|
||||||
if (get_compat_timespec(&t, uts))
|
if (compat_get_timespec(&t, uts))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue