leak in mtd/devices/phram.c

MikeW mw_phil at yahoo.co.uk
Tue May 22 03:46:27 EDT 2007


Eric Sesterhenn / Snakebyte <snakebyte <at> gmx.de> writes:

> 
> hi,
> 
> coverity spotted this leak in mtd/devices/phram.c (bug id #1512),
> when register_device() fails, we dont kfree() name and leak it,
> attached patch should fix this.
> 
> Signed-off-by: Eric Sesterhenn <snakebyte <at> gmx.de>

It's good that the drivers are now getting audited for kmalloc/kfree
(see other recent kfree patch).
Keep it up !! How about a driver memory leak reg-test ?!

Regards,
MikeW





More information about the linux-mtd mailing list