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:
chao.an
2021-04-06 17:33:18 +08:00
committed by Xiang Xiao
parent 5a61d80ea3
commit 893989e2f9

View File

@@ -369,7 +369,7 @@ int fs_getfilep(int fd, FAR struct file **filep)
_files_semgive(list);
}
return OK;
return ret;
}
/****************************************************************************