mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-19 05:43:31 +08:00
[DFS] fix ROMFS get root directory bug
This commit is contained in:
parent
89fd2e9f87
commit
5ccbaae150
@ -191,8 +191,10 @@ int dfs_romfs_open(struct dfs_fd *file)
|
||||
rt_size_t size;
|
||||
struct romfs_dirent *dirent;
|
||||
struct romfs_dirent *root_dirent;
|
||||
struct dfs_filesystem *fs;
|
||||
|
||||
root_dirent = (struct romfs_dirent *)file->data;
|
||||
fs = (struct dfs_filesystem *)file->data;
|
||||
root_dirent = (struct romfs_dirent *)fs->data;
|
||||
|
||||
if (check_dirent(root_dirent) != 0)
|
||||
return -EIO;
|
||||
|
Loading…
x
Reference in New Issue
Block a user