kernel-ark/drivers/mtd/devices
Jesper Juhl a6550e57f9 mtd: fix memory leak in block2mtd_setup()
There's a mem leak in drivers/mtd/devices/block2mtd.c::block2mtd_setup()

We can leak 'name' allocated with kmalloc in 'parse_name' if leave via
the 'parse_err' macro since it contains a return but doesn't do any
freeing.

Spotted by coverity checker as bug 615.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2006-05-14 01:21:31 +01:00
..
block2mtd.c mtd: fix memory leak in block2mtd_setup() 2006-05-14 01:21:31 +01:00
doc2000.c Remove inter_module_xxx() from DiskOnChip drivers. 2006-05-08 14:05:05 +01:00
doc2001.c [MTD] Fix capitalisation in export of old doc2001.c initfunc 2006-05-12 11:40:13 +01:00
doc2001plus.c [MTD] Fix capitalisation in export of DiskOnChip Millennium initfunc 2006-05-10 16:16:13 +01:00
docecc.c
docprobe.c Fix non-modular case for DiskOnChip probe 2006-05-08 17:10:11 +01:00
Kconfig Remove inter_module_xxx() from DiskOnChip drivers. 2006-05-08 14:05:05 +01:00
lart.c
m25p80.c
Makefile Remove inter_module_xxx() from DiskOnChip drivers. 2006-05-08 14:05:05 +01:00
ms02-nv.c
ms02-nv.h
mtd_dataflash.c
mtdram.c
phram.c mtd: fix memory leaks in phram_setup 2006-05-14 00:13:30 +01:00
pmc551.c
slram.c