mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-19 16:26:55 +08:00
DFS/jffs2: fix bug when umount jffs2
found by haitao5198 clear mount parition device talbe when jffs2 mount falied
This commit is contained in:
@@ -178,6 +178,7 @@ static int dfs_jffs2_mount(struct dfs_filesystem* fs,
|
||||
result = jffs2_mount(NULL, mte);
|
||||
if (result != 0)
|
||||
{
|
||||
device_partition[index].dev = NULL;
|
||||
return jffs2_result_to_dfs(result);
|
||||
}
|
||||
/* save this pointer */
|
||||
|
||||
Reference in New Issue
Block a user