Skip to content

Commit

Permalink
UBIFS: fix remount error path
Browse files Browse the repository at this point in the history
Dan's "smatch" checker found out that there was a bug in the error path of the
'ubifs_remount_rw()' function. Instead of jumping to the "out" label which
cleans-things up, we just returned.

This patch fixes the problem.

Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
  • Loading branch information
dedekind committed May 5, 2014
1 parent 89ca3b8 commit fcdd57c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ static int ubifs_remount_rw(struct ubifs_info *c)
if (c->space_fixup) {
err = ubifs_fixup_free_space(c);
if (err)
return err;
goto out;
}

err = check_free_space(c);
Expand Down

0 comments on commit fcdd57c

Please sign in to comment.