summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/mutex-llsc.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-12-08 09:01:40 +0100
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 10:44:02 +0100
commit06be3724548a443a99d703ff79f43d6f1e2975f0 (patch)
treeac704d6faeadd77e64bb4f8695ec03f8b30831e7 /arch/sh/include/asm/mutex-llsc.h
parentsh: Update rsk701_defconfig to reflect mach-rsk changes. (diff)
downloadlinux-06be3724548a443a99d703ff79f43d6f1e2975f0.tar.xz
linux-06be3724548a443a99d703ff79f43d6f1e2975f0.zip
sh: Fix an off-by-1 check in __mutex_fastpath_unlock().
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/mutex-llsc.h')
-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 *))
: "t");
__res |= !__ex_flag;
- if (unlikely(__res != 0))
+ if (unlikely(__res <= 0))
fail_fn(count);
}