fs/inode/fs_fileopen.c: use nx_close instead of close

Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
This commit is contained in:
Juha Niskanen 2020-10-28 17:02:35 +02:00 committed by Xiang Xiao
parent 1115452061
commit 1577726f05
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ int file_open(FAR struct file *filep, FAR const char *path, int oflags, ...)
ret = file_detach(fd, filep);
if (ret < 0)
{
close(fd);
nx_close(fd);
return ret;
}