summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authoryangfasheng <[email protected]>2023-06-20 23:09:58 +0800
committerGitHub <[email protected]>2023-06-20 23:09:58 +0800
commitb4e59bac4e2d8b039a2365ddc219ac9a3caf0f77 (patch)
treed8fdf234ff4f06c05d2461f575d9568782d661b2 /components/dfs
parent3e4797c63c43384825d63166966289bb60b6be78 (diff)
dfs v2 修改 fd_new 的 startfd 起始值为 0 ;修复 futex_wait 超时时间换算异常; (#7705)
Signed-off-by: yangfasheng <[email protected]>
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/dfs_v2/src/dfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/dfs_v2/src/dfs.c b/components/dfs/dfs_v2/src/dfs.c
index c181930fcc..9b25985409 100644
--- a/components/dfs/dfs_v2/src/dfs.c
+++ b/components/dfs/dfs_v2/src/dfs.c
@@ -197,7 +197,7 @@ int fdt_fd_new(struct dfs_fdtable *fdt)
dfs_file_lock();
/* find an empty fd entry */
- idx = fd_alloc(fdt, DFS_STDIO_OFFSET);
+ idx = fd_alloc(fdt, 0);
/* can't find an empty fd entry */
if (idx < 0)
{