diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-12-08 08:01:40 (GMT) |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 09:44:02 (GMT) |
commit | 06be3724548a443a99d703ff79f43d6f1e2975f0 (patch) | |
tree | ac704d6faeadd77e64bb4f8695ec03f8b30831e7 | |
parent | a47925ffd1b1b22ee004de36e2c8b811910616ba (diff) | |
download | linux-fsl-qoriq-06be3724548a443a99d703ff79f43d6f1e2975f0.tar.xz |
sh: Fix an off-by-1 check in __mutex_fastpath_unlock().
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/include/asm/mutex-llsc.h | 2 |
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 a91990c..ee839ee 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); } |