diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-05-23 14:16:13 +0300 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-06-12 14:45:25 +0300 |
commit | 276de5d2a18bcdc69e6d48a4d96afc14cfef9dcb (patch) | |
tree | ea7e6a8475c8523166c4cf84f15a45b15c83268a /fs/ubifs/super.c | |
parent | 7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff) | |
download | linux-276de5d2a18bcdc69e6d48a4d96afc14cfef9dcb.tar.gz linux-276de5d2a18bcdc69e6d48a4d96afc14cfef9dcb.tar.bz2 linux-276de5d2a18bcdc69e6d48a4d96afc14cfef9dcb.zip |
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 <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'fs/ubifs/super.c')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 4d2f2157dd3f..010eea009036 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) |