From: Matthieu CASTET Date: Mon, 2 Aug 2010 09:36:06 +0000 (+0200) Subject: UBIFS: fix a memory leak on error path. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c18de72fb3c72fdc5ca883910761af3f14d90d76;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Artem Bityutskiy --- 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);