Merge pull request #896 from armink/fix_dfs

[DFS] Fix `fd_new` failed return value.
This commit is contained in:
Bernard Xiong 2017-10-23 12:08:29 +08:00 committed by GitHub
commit 20937b8377
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}