mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 23:46:41 +07:00
CRIS: locking: fix the return value of arch_read_trylock()
arch_write_trylock() should return 'ret' instead of always return 1. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
This commit is contained in:
parent
e61ac0b05c
commit
00addd1a2d
@ -118,7 +118,7 @@ static inline int arch_write_trylock(arch_rwlock_t *rw)
|
||||
ret = 1;
|
||||
}
|
||||
arch_spin_unlock(&rw->slock);
|
||||
return 1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
#define _raw_read_lock_flags(lock, flags) _raw_read_lock(lock)
|
||||
|
Loading…
Reference in New Issue
Block a user