projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a566c28
)
x32: fix sigtimedwait
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 24 Dec 2012 17:31:00 +0000
(12:31 -0500)
committer
Al 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
patch
|
blob
|
blame
|
history
diff --git
a/kernel/compat.c
b/kernel/compat.c
index e5cc33c7122c2399f10085f5beff6afa61c0ae7f..36700e9e2be9125f976963cb1fca4316460dee00 100644
(file)
--- a/
kernel/compat.c
+++ b/
kernel/compat.c
@@
-1001,7
+1001,7
@@
compat_sys_rt_sigtimedwait (compat_sigset_t __user *uthese,
sigset_from_compat(&s, &s32);
if (uts) {
- if (
get_compa
t_timespec(&t, uts))
+ if (
compat_ge
t_timespec(&t, uts))
return -EFAULT;
}