linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] UBIFS memleak
@ 2010-08-02  9:36 Matthieu CASTET
  2010-08-03  6:00 ` Artem Bityutskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Matthieu CASTET @ 2010-08-02  9:36 UTC (permalink / raw)
  To: linux-mtd@lists.infradead.org

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

In mount_ubifs, in case of ubifs_leb_unmap error, free allocated resources.


Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>



[-- Attachment #2: ubifs.diff --]
[-- Type: text/x-diff, Size: 332 bytes --]

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);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] UBIFS memleak
  2010-08-02  9:36 [PATCH] UBIFS memleak Matthieu CASTET
@ 2010-08-03  6:00 ` Artem Bityutskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-08-03  6:00 UTC (permalink / raw)
  To: Matthieu CASTET; +Cc: linux-mtd@lists.infradead.org

On Mon, 2010-08-02 at 11:36 +0200, Matthieu CASTET wrote:
> In mount_ubifs, in case of ubifs_leb_unmap error, free allocated resources.
> 
> 
> Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>

Pushed, thanks.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-08-03  6:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-02  9:36 [PATCH] UBIFS memleak Matthieu CASTET
2010-08-03  6:00 ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).