Skip to contentSkip to conversation

UBIFS memleak

PATCH In review Matthieu CASTET 2 participants 2 messages Aug 2, 2010 – Aug 3, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UBIFS memleak

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

fs/ubifs/super.c +1 -1
index 4d2f215..9362f16 100644
@@ -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);
#1 lore raw
Quoted 4 lines · Matthieu CASTET

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

Pushed, thanks.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)