提交 06be3724 编写于 作者: P Paul Mundt

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

Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 a47925ff
...@@ -73,7 +73,7 @@ __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *)) ...@@ -73,7 +73,7 @@ __mutex_fastpath_unlock(atomic_t *count, void (*fail_fn)(atomic_t *))
: "t"); : "t");
__res |= !__ex_flag; __res |= !__ex_flag;
if (unlikely(__res != 0)) if (unlikely(__res <= 0))
fail_fn(count); fail_fn(count);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册