From patchwork Mon Aug 2 09:36:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: UBIFS memleak Date: Sun, 01 Aug 2010 23:36:06 -0000 From: Matthieu CASTET X-Patchwork-Id: 60526 Message-Id: <4C569186.4080404@parrot.com> To: "linux-mtd@lists.infradead.org" In mount_ubifs, in case of ubifs_leb_unmap error, free allocated resources. Signed-off-by: Matthieu CASTET diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index 4d2f215..9362f16 100644 --- a/fs/ubifs/super.c +++ b/fs/ubifs/super.c @@ -1318,7 +1318,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);