summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2009-05-25 08:49:10 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-25 11:28:27 +0200
commit8eec2f36fb869f1e6d81d834bbbd487941222fc8 (patch)
tree166dd7244dc187cd59e51af5541b1b1ca854b111 /fs
parentUBIFS: return error if link and unlink race (diff)
downloadlinux-8eec2f36fb869f1e6d81d834bbbd487941222fc8.tar.xz
linux-8eec2f36fb869f1e6d81d834bbbd487941222fc8.zip
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')
-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;
}