projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix mutex_trylock() copy-and-paste bug (x86, x86-64, generic mutex-dec.h)
[cascardo/linux.git]
/
include
/
asm-generic
/
mutex-dec.h
diff --git
a/include/asm-generic/mutex-dec.h
b/include/asm-generic/mutex-dec.h
index
74b18cd
..
40c6d1f
100644
(file)
--- a/
include/asm-generic/mutex-dec.h
+++ b/
include/asm-generic/mutex-dec.h
@@
-97,7
+97,7
@@
__mutex_fastpath_trylock(atomic_t *count, int (*fail_fn)(atomic_t *))
* the mutex state would be.
*/
#ifdef __HAVE_ARCH_CMPXCHG
- if (likely(atomic_cmpxchg(count, 1, 0)
) == 1
) {
+ if (likely(atomic_cmpxchg(count, 1, 0)
== 1)
) {
smp_mb();
return 1;
}