From: Artem Bityutskiy Date: Sun, 23 May 2010 11:16:13 +0000 (+0300) Subject: UBIFS: check return code X-Git-Tag: v2.6.36-rc1~587^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=276de5d2a18bcdc69e6d48a4d96afc14cfef9dcb;p=thirdparty%2Fkernel%2Flinux.git UBIFS: check return code The error code from 'ubifs_rcvry_gc_commit()' was ignored, so UBIFS failed to recover and continued. Instead, we should refuse mounting the file-system. Signed-off-by: Artem Bityutskiy --- diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 4d2f2157dd3fa..010eea0090367 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1307,6 +1307,8 @@ static int mount_ubifs(struct ubifs_info *c) if (err) goto out_orphans; err = ubifs_rcvry_gc_commit(c); + if (err) + goto out_orphans; } else { err = take_gc_lnum(c); if (err)