summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/super.c
diff options
context:
space:
mode:
authorMatthieu CASTET <matthieu.castet@parrot.com>2010-08-02 11:36:06 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2010-08-03 07:58:09 +0200
commitc18de72fb3c72fdc5ca883910761af3f14d90d76 (patch)
tree52a5a452b4c5ccafec443013dda03da8343eab0d /fs/ubifs/super.c
parentUBIFS: fix GC LEB recovery (diff)
downloadlinux-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 'fs/ubifs/super.c')
-rw-r--r--fs/ubifs/super.c2
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);