提交 bc2abf69 编写于 作者: B bernard

[DFS] Fix the ramfs issue.

上级 7d673f92
......@@ -311,12 +311,13 @@ int dfs_ramfs_getdents(struct dfs_fd *file,
struct dfs_ramfs *ramfs;
dirent = (struct ramfs_dirent *)file->data;
if (dirent != &(ramfs->root))
return -EINVAL;
ramfs = dirent->fs;
RT_ASSERT(ramfs != RT_NULL);
if (dirent != &(ramfs->root))
return -EINVAL;
/* make integer count */
count = (count / sizeof(struct dirent));
if (count == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册