mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[DFS] Fix fd_new failed return value.
This commit is contained in:
@@ -128,7 +128,7 @@ int fd_new(void)
|
||||
/* can't find an empty fd entry */
|
||||
if (idx == DFS_FD_MAX)
|
||||
{
|
||||
idx = -1;
|
||||
idx = -(1 + DFS_FD_OFFSET);
|
||||
goto __result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user