X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=compat_futex.c;h=dd5bf8a18b574ee06fd50c2d1560eca07dc1e39f;hb=refs%2Fheads%2Fstable-0.8;hp=0cc2956b66bcf35a5fe0786844e9d133743e6690;hpb=5b968b22cbf198656f2b9193675a631b1763cdd8;p=userspace-rcu.git diff --git a/compat_futex.c b/compat_futex.c index 0cc2956..dd5bf8a 100644 --- a/compat_futex.c +++ b/compat_futex.c @@ -54,7 +54,7 @@ pthread_cond_t __urcu_compat_futex_cond = PTHREAD_COND_INITIALIZER; int compat_futex_noasync(int32_t *uaddr, int op, int32_t val, const struct timespec *timeout, int32_t *uaddr2, int32_t val3) { - int ret, lockret; + int ret = 0, lockret; /* * Check if NULL. Don't let users expect that they are taken into @@ -111,6 +111,8 @@ end: * _ASYNC SIGNAL-SAFE_. * For now, timeout, uaddr2 and val3 are unused. * Waiter will busy-loop trying to read the condition. + * It is OK to use compat_futex_async() on a futex address on which + * futex() WAKE operations are also performed. */ int compat_futex_async(int32_t *uaddr, int op, int32_t val,