mirror of
https://github.com/apache/nuttx.git
synced 2026-10-08 06:45:19 +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
9061c997fc
commit
58bd0468ab
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