mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Replace nxsem API when used as a lock with nxmutex API
Signed-off-by: anjiahao <anjiahao@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
0dfd1f004d
commit
d1d46335df
@@ -55,7 +55,7 @@ int inode_find(FAR struct inode_search_s *desc)
|
||||
* references on the node.
|
||||
*/
|
||||
|
||||
ret = inode_semtake();
|
||||
ret = inode_lock();
|
||||
if (ret < 0)
|
||||
{
|
||||
return ret;
|
||||
@@ -74,6 +74,6 @@ int inode_find(FAR struct inode_search_s *desc)
|
||||
node->i_crefs++;
|
||||
}
|
||||
|
||||
inode_semgive();
|
||||
inode_unlock();
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user