mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
fs/inode: correct the return value
correct the return value of fs_getfilep() since the semaphore take may probably fail if the thread canceled Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
5a61d80ea3
commit
893989e2f9
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ int fs_getfilep(int fd, FAR struct file **filep)
|
|||
_files_semgive(list);
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue