about summary refs log tree commit diff
path: root/nptl/libc-cancellation.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/libc-cancellation.c')
-rw-r--r--nptl/libc-cancellation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/libc-cancellation.c b/nptl/libc-cancellation.c
index af56891007..d9ad94fa61 100644
--- a/nptl/libc-cancellation.c
+++ b/nptl/libc-cancellation.c
@@ -47,7 +47,7 @@ __libc_enable_asynccancel (void)
 	    break;
 
 	  if (atomic_compare_and_exchange_acq (&self->cancelhandling, newval,
-					       oldval) == 0)
+					       oldval) != 0)
 	    /* Somebody else modified the word, try again.  */
 	    continue;