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 Abdelatif Guettouche
parent 9061c997fc
commit 58bd0468ab

View File

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