|
@@ -196,7 +196,7 @@ int jffs2_scan_medium(struct jffs2_sb_info *c)
|
|
if (c->nextblock) {
|
|
if (c->nextblock) {
|
|
ret = file_dirty(c, c->nextblock);
|
|
ret = file_dirty(c, c->nextblock);
|
|
if (ret)
|
|
if (ret)
|
|
- return ret;
|
|
|
|
|
|
+ goto out;
|
|
/* deleting summary information of the old nextblock */
|
|
/* deleting summary information of the old nextblock */
|
|
jffs2_sum_reset_collected(c->summary);
|
|
jffs2_sum_reset_collected(c->summary);
|
|
}
|
|
}
|
|
@@ -207,7 +207,7 @@ int jffs2_scan_medium(struct jffs2_sb_info *c)
|
|
} else {
|
|
} else {
|
|
ret = file_dirty(c, jeb);
|
|
ret = file_dirty(c, jeb);
|
|
if (ret)
|
|
if (ret)
|
|
- return ret;
|
|
|
|
|
|
+ goto out;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
|
|
|