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

Damir Shayhutdinov lost404 at gmail.com
Mon Nov 12 07:42:38 EST 2007


> > 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?



More information about the linux-mtd mailing list