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

Commit 8eec2f36 authored by Corentin Chary's avatar Corentin Chary Committed by Artem Bityutskiy
Browse files

UBIFS: return proper error code if the compr is not present



If the compressor is not present, mount_ubifs need
to return an error code. This way ubifs_fill_super
will stop and handle the error.

Signed-off-by: default avatarCorentin Chary <corentincj@iksaif.net>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 8b3884a8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1187,6 +1187,7 @@ static int mount_ubifs(struct ubifs_info *c)
	if (!ubifs_compr_present(c->default_compr)) {
		ubifs_err("'compressor \"%s\" is not compiled in",
			  ubifs_compr_name(c->default_compr));
		err = -ENOTSUPP;
		goto out_free;
	}