提交 20937b83 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #896 from armink/fix_dfs

[DFS] Fix `fd_new` failed return value.
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册