From f71f0595d68b42709f93c524a9d2ad4a85c75489 Mon Sep 17 00:00:00 2001 From: prife Date: Sat, 28 Sep 2013 14:57:05 +0800 Subject: [PATCH] DFS/jffs2: fix bug when umount jffs2 found by haitao5198 clear mount parition device talbe when jffs2 mount falied --- components/dfs/filesystems/jffs2/dfs_jffs2.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- GitLab