summaryrefslogtreecommitdiff
path: root/fs/ubifs
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2009-05-25 10:49:10 +0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-25 13:28:27 +0400
commit8eec2f36fb869f1e6d81d834bbbd487941222fc8 (patch)
tree166dd7244dc187cd59e51af5541b1b1ca854b111 /fs/ubifs
parent8b3884a841f398f6e0a0411d6929d8d9381bb265 (diff)
downloadlinux-8eec2f36fb869f1e6d81d834bbbd487941222fc8.tar.xz
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: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/super.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c
index f2c1c0b79f66..052514ca2792 100644
--- a/fs/ubifs/super.c
+++ b/fs/ubifs/super.c
@@ -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;
}