aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs
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 08:58:09 +0300
commitc18de72fb3c72fdc5ca883910761af3f14d90d76 (patch)
tree52a5a452b4c5ccafec443013dda03da8343eab0d /fs/ubifs
parent6fb4374f6b1b3932f3acfe9d353568d3d8599cad (diff)
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')
-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 010eea00903..5fc5a098897 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);