Merge pull request #1623 from armink/fix_fcntl

[dfs] Fix dfs_file_ioctl return check on fcntl.
This commit is contained in:
Bernard Xiong 2018-07-13 17:28:55 +08:00 committed by GitHub
commit 2c0f31b9ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ int fcntl(int fildes, int cmd, ...)
}
else ret = -EBADF;
if (ret != 0)
if (ret < 0)
{
rt_set_errno(ret);
ret = -1;