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

Commit 276de5d2 authored by Artem Bityutskiy's avatar Artem Bityutskiy
Browse files

UBIFS: check return code



The error code from 'ubifs_rcvry_gc_commit()' was ignored, so UBIFS
failed to recover and continued. Instead, we should refuse mounting
the file-system.

Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 7e27d6e7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1307,6 +1307,8 @@ static int mount_ubifs(struct ubifs_info *c)
			if (err)
				goto out_orphans;
			err = ubifs_rcvry_gc_commit(c);
			if (err)
				goto out_orphans;
		} else {
			err = take_gc_lnum(c);
			if (err)