Skip to content

Commit

Permalink
[JFFS2] Return real jffs2_sum_init() error code
Browse files Browse the repository at this point in the history
Signed-off-by: Ferenc Havasi <havasi@inf.u-szeged.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Ferenc Havasi authored and Thomas Gleixner committed Nov 6, 2005
1 parent e631ddb commit c617e84
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fs/jffs2/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 $
*
*/

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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"));
Expand Down

0 comments on commit c617e84

Please sign in to comment.