aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/sh/include/asm/mutex-llsc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/mutex-llsc.h b/arch/sh/include/asm/mutex-llsc.h
index a91990c6e8e5..ee839ee58ac8 100644
--- a/arch/sh/include/asm/mutex-llsc.h
+++ b/arch/sh/include/asm/mutex-llsc.h
@@ -73,7 +73,7 @@ __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *))
73 : "t"); 73 : "t");
74 74
75 __res |= !__ex_flag; 75 __res |= !__ex_flag;
76 if (unlikely(__res != 0)) 76 if (unlikely(__res <= 0))
77 fail_fn(count); 77 fail_fn(count);
78} 78}
79 79