Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fcdd57c8 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: fix remount error path



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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 89ca3b88
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);