Skip to contentSkip to conversation

UBIFS memleak ?

PATCH Matthieu CASTET 2 participants 2 messages Jul 13, 2010 – Jul 18, 2010

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

Hi,

in mount_ubifs shouldn't we do something like that in case of ubifs_leb_unmap error ?

Matthieu

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

Hi,

in mount_ubifs shouldn't we do something like that in case of ubifs_leb_unmap error ?

Yes, are you going to send a proper patch with signed-off-by?

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