Browse Source

sh: Fix an off-by-1 check in __mutex_fastpath_unlock().

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt 16 years ago
parent
commit
06be372454
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/sh/include/asm/mutex-llsc.h

+ 1 - 1
arch/sh/include/asm/mutex-llsc.h

@@ -73,7 +73,7 @@ __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *))
 		: "t");
 
 	__res |= !__ex_flag;
-	if (unlikely(__res != 0))
+	if (unlikely(__res <= 0))
 		fail_fn(count);
 }