未验证 提交 2c0f31b9 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1623 from armink/fix_fcntl

[dfs] Fix dfs_file_ioctl return check on fcntl.
...@@ -449,7 +449,7 @@ int fcntl(int fildes, int cmd, ...) ...@@ -449,7 +449,7 @@ int fcntl(int fildes, int cmd, ...)
} }
else ret = -EBADF; else ret = -EBADF;
if (ret != 0) if (ret < 0)
{ {
rt_set_errno(ret); rt_set_errno(ret);
ret = -1; ret = -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册