diff options
author | Ferenc Havasi <havasi@inf.u-szeged.hu> | 2005-09-07 12:22:01 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-11-06 21:31:05 +0100 |
commit | c617e842482eb513070cbf233766099cff2a1663 (patch) | |
tree | b49cfa5bf5e731f40bd6b10bcc8f59e592b8be6a /fs/jffs2 | |
parent | e631ddba588783edd521c5a89f7b2902772fb691 (diff) | |
download | op-kernel-dev-c617e842482eb513070cbf233766099cff2a1663.zip op-kernel-dev-c617e842482eb513070cbf233766099cff2a1663.tar.gz |
[JFFS2] Return real jffs2_sum_init() error code
Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/build.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/jffs2/build.c b/fs/jffs2/build.c index f4a47a3..f2cf562 100644 --- a/fs/jffs2/build.c +++ b/fs/jffs2/build.c @@ -7,7 +7,7 @@ * * For licensing information, see the file 'LICENCE' in this directory. * - * $Id: build.c,v 1.78 2005/09/07 08:34:54 havasi Exp $ + * $Id: build.c,v 1.79 2005/09/07 11:21:57 havasi Exp $ * */ @@ -313,6 +313,7 @@ static void jffs2_calc_trigger_levels(struct jffs2_sb_info *c) int jffs2_do_mount_fs(struct jffs2_sb_info *c) { + int ret; int i; c->free_size = c->flash_size; @@ -352,8 +353,9 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) c->highest_ino = 1; c->summary = NULL; - if (jffs2_sum_init(c)) - return -ENOMEM; + ret = jffs2_sum_init(c); + if (ret) + return ret; if (jffs2_build_filesystem(c)) { D1(printk(KERN_DEBUG "build_fs failed\n")); |