From: Al Viro Date: Mon, 24 Dec 2012 17:31:00 +0000 (-0500) Subject: x32: fix sigtimedwait X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b2ddedcd21f44a5873ee3d6ff6118a2318e01e18;p=linux-beck.git 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 --- 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, sigset_from_compat(&s, &s32); if (uts) { - if (get_compat_timespec(&t, uts)) + if (compat_get_timespec(&t, uts)) return -EFAULT; }