UBIFS: return proper error code if the compr is not present
authorCorentin Chary <corentincj@iksaif.net>
Mon, 25 May 2009 06:49:10 +0000 (08:49 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 May 2009 09:28:27 +0000 (12:28 +0300)
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>
fs/ubifs/super.c

index f2c1c0b..052514c 100644 (file)
@@ -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;
        }