diff options
author | Matthieu CASTET <matthieu.castet@parrot.com> | 2010-08-02 11:36:06 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2010-08-03 07:58:09 +0200 |
commit | c18de72fb3c72fdc5ca883910761af3f14d90d76 (patch) | |
tree | 52a5a452b4c5ccafec443013dda03da8343eab0d /fs/ubifs/super.c | |
parent | UBIFS: fix GC LEB recovery (diff) | |
download | linux-c18de72fb3c72fdc5ca883910761af3f14d90d76.tar.xz linux-c18de72fb3c72fdc5ca883910761af3f14d90d76.zip |
UBIFS: fix a memory leak on error path.
In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure,
free allocated resources.
Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to '')
-rw-r--r-- | fs/ubifs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 010eea009036..5fc5a0988970 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c) */ err = ubifs_leb_unmap(c, c->gc_lnum); if (err) - return err; + goto out_orphans; } err = dbg_check_lprops(c); |