mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00:00
sh: Fix an off-by-1 check in __mutex_fastpath_unlock().
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
a47925ffd1
commit
06be372454
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user