4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-19 03:33:32 +08:00

[dfs] Fix dfs_file_ioctl return check on fcntl.

This commit is contained in:
armink 2018-07-13 11:14:36 +08:00
parent 60435316ac
commit c779104ef7

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;