aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c b/nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c
index d4d91db5ce..380091c565 100644
--- a/nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c
+++ b/nptl/sysdeps/unix/sysv/linux/s390/lowlevelmutex.c
@@ -48,7 +48,7 @@ ___lll_mutex_timedlock (futex, abstime, newval)
int newval;
{
/* Reject invalid timeouts. */
- if (abstime->tv_nsec >= 1000000000)
+ if (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000)
return EINVAL;
int oldval;