summaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-07-14 16:24:56 +0000
committerUlrich Drepper <drepper@redhat.com>2004-07-14 16:24:56 +0000
commit4e9f676f9f6451e577f9c127ee1d9d9aa9c6a3fe (patch)
tree0b3fc65d5dab394ac74dcc9400ff130be0f4ae4a /nptl
parent72abd10b495688bf866e087b4d9c876108ef25d1 (diff)
(__pthread_cond_timedwait): Check for invalid nanosecond in timeout value.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S b/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
index 2d0df6b5bf..7694f36f95 100644
--- a/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
+++ b/nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S
@@ -62,6 +62,12 @@ __pthread_cond_timedwait:
add r0, r12
#endif
+ mov.l @(4,r13), r0
+ mov.l .L1g, r1
+ cmp/hs r1, r0
+ bt/s 18f
+ mov #EINVAL, r0
+
/* Get internal lock. */
mov #0, r3
mov #1, r4