diff options
| author | prife <[email protected]> | 2013-09-28 14:57:05 +0800 |
|---|---|---|
| committer | prife <[email protected]> | 2013-09-28 14:57:05 +0800 |
| commit | f71f0595d68b42709f93c524a9d2ad4a85c75489 (patch) | |
| tree | 85e12ba214bd0733fd428fb5d25565f6de7c51b1 /components/dfs | |
| parent | 12a636621771a838f808acd25758dd061a686993 (diff) | |
DFS/jffs2: fix bug when umount jffs2
found by haitao5198
clear mount parition device talbe when jffs2 mount falied
Diffstat (limited to 'components/dfs')
| -rw-r--r-- | components/dfs/filesystems/jffs2/dfs_jffs2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/dfs/filesystems/jffs2/dfs_jffs2.c b/components/dfs/filesystems/jffs2/dfs_jffs2.c index 3b96295c76..6516797544 100644 --- a/components/dfs/filesystems/jffs2/dfs_jffs2.c +++ b/components/dfs/filesystems/jffs2/dfs_jffs2.c @@ -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 */ |
