about summary refs log tree commit diff
path: root/nptl/sysdeps/unix/sysv/linux/sem_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/sem_post.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/sem_post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/sem_post.c b/nptl/sysdeps/unix/sysv/linux/sem_post.c
index 77defc84f9..2da6ecd696 100644
--- a/nptl/sysdeps/unix/sysv/linux/sem_post.c
+++ b/nptl/sysdeps/unix/sysv/linux/sem_post.c
@@ -33,7 +33,7 @@ __new_sem_post (sem_t *sem)
   int err, nr;
 
   __asm __volatile (__lll_rel_instr ::: "memory");
-  nr = __lll_add (futex, 1);
+  nr = atomic_exchange_and_add (futex, 1);
   err = lll_futex_wake (futex, nr);
   if (err == 0)
     return 0;