Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 49148
b: refs/heads/master
c: cfa7239
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Adamushko authored and David Woodhouse committed Feb 9, 2007
1 parent c1e3928 commit 6f218c3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d36da3b409536a24266c5f0972f2e1cfae1afd4
refs/heads/master: cfa72397cf3a15f2841447440fd53980b3ecd624
22 changes: 13 additions & 9 deletions trunk/fs/jffs2/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,23 +348,27 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)

ret = jffs2_sum_init(c);
if (ret)
return ret;
goto out_free;

if (jffs2_build_filesystem(c)) {
dbg_fsbuild("build_fs failed\n");
jffs2_free_ino_caches(c);
jffs2_free_raw_node_refs(c);
#ifndef __ECOS
if (jffs2_blocks_use_vmalloc(c))
vfree(c->blocks);
else
#endif
kfree(c->blocks);

return -EIO;
ret = -EIO;
goto out_free;
}

jffs2_calc_trigger_levels(c);

return 0;

out_free:
#ifndef __ECOS
if (jffs2_blocks_use_vmalloc(c))
vfree(c->blocks);
else
#endif
kfree(c->blocks);

return ret;
}

0 comments on commit 6f218c3

Please sign in to comment.