diff --git a/ChangeLog b/ChangeLog index 9573c5c4b2..d90569fd69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Tulio Magno Quites Machado Filho + + * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c + (__lll_unlock_elision): Fix adapt_count decrement. + 2017-01-14 Martin Galvan * README.pretty-printers (Known issues): Warn about printers not diff --git a/sysdeps/unix/sysv/linux/powerpc/elision-unlock.c b/sysdeps/unix/sysv/linux/powerpc/elision-unlock.c index 759c1464a7..e3fe58e3f1 100644 --- a/sysdeps/unix/sysv/linux/powerpc/elision-unlock.c +++ b/sysdeps/unix/sysv/linux/powerpc/elision-unlock.c @@ -35,7 +35,7 @@ __lll_unlock_elision (int *lock, short *adapt_count, int pshared) the mutex destruction requirements. */ short __tmp = atomic_load_relaxed (adapt_count); if (__tmp > 0) - atomic_store_relaxed (adapt_count, __tmp--); + atomic_store_relaxed (adapt_count, __tmp - 1); lll_unlock ((*lock), pshared); }