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:
parent
60435316ac
commit
c779104ef7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user