Kernel memleak in jffs2_erase_block() (fs/jffs2/erase.c:78)

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Nov 12 10:35:09 EST 2007


On Mon, 2007-11-12 at 15:42 +0300, Damir Shayhutdinov wrote:
> > > So, sizeof(struct erase_info) + sizeof(struct erase_priv_struct) bytes
> > > are leaking each time block is erased successfully.
> >
> > Nope, instr is freed in jffs2_erase_callback() in this case.
> 
> Oh, I missed that part. You're right. Maybe it's worth some comments
> in source code?

Sure, if you want you can send a patch to the list/David.

 Jocke



More information about the linux-mtd mailing list