提交 b4168cc6 编写于 作者: armink_ztl's avatar armink_ztl

[DFS] Fix `fd_new` failed return value.

上级 b4831fbd
......@@ -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.
先完成此消息的编辑!
想要评论请 注册