Commit 06be3724 authored by Paul Mundt's avatar Paul Mundt
Browse files

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



Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent a47925ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}