From: Corentin Chary Date: Mon, 25 May 2009 06:49:10 +0000 (+0200) Subject: UBIFS: return proper error code if the compr is not present X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8eec2f36fb869f1e6d81d834bbbd487941222fc8;p=linux-beck.git 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 Signed-off-by: Artem Bityutskiy --- 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; }