]> Pileus Git - ~andy/linux/blobdiff - fs/ubifs/super.c
UBIFS: return proper error code if the compr is not present
[~andy/linux] / fs / ubifs / super.c
index f2c1c0b79f66b22c22e5ee144cc2e64834d598d2..052514ca2792783e3a613192e8f519ce73b2b89d 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;
        }