Skip to content
Commit 1e5c5946 authored by surinder's avatar surinder Committed by Russell King
Browse files

[ARM] 5067/1: _raw_write_can_lock macro bugfix



The current __raw_write_can_lock macro tests whether the lock can be
locked by checking if it is equal to 0x80000000, whereas the lock
should be lockable if its value is 0 i.e. unlocked state is
represented by 0. Hence the macro should test the value of lock
against 0 and not 0x80000000.

Signed-off-by: default avatarSurinder Pal Singh <srplsnh@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ea6a7404
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment