aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs
diff options
context:
space:
mode:
authorCorentin Chary <corentincj@iksaif.net>2009-05-25 02:49:10 -0400
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-05-25 05:28:27 -0400
commit8eec2f36fb869f1e6d81d834bbbd487941222fc8 (patch)
tree166dd7244dc187cd59e51af5541b1b1ca854b111 /fs/ubifs
parent8b3884a841f398f6e0a0411d6929d8d9381bb265 (diff)
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)
1187 if (!ubifs_compr_present(c->default_compr)) { 1187 if (!ubifs_compr_present(c->default_compr)) {
1188 ubifs_err("'compressor \"%s\" is not compiled in", 1188 ubifs_err("'compressor \"%s\" is not compiled in",
1189 ubifs_compr_name(c->default_compr)); 1189 ubifs_compr_name(c->default_compr));
1190 err = -ENOTSUPP;
1190 goto out_free; 1191 goto out_free;
1191 } 1192 }
1192 1193