From 58bd0468ab12b13541879cd73febaf6d71b1e843 Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Tue, 6 Apr 2021 17:33:18 +0800 Subject: [PATCH] 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 --- fs/inode/fs_files.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inode/fs_files.c b/fs/inode/fs_files.c index 0894e9c1a4..738c3ce0a6 100644 --- a/fs/inode/fs_files.c +++ b/fs/inode/fs_files.c @@ -369,7 +369,7 @@ int fs_getfilep(int fd, FAR struct file **filep) _files_semgive(list); } - return OK; + return ret; } /****************************************************************************