kernel-hacking-2024-linux-s.../drivers/mtd
Mathias Krause f17f12ce9d mtd: phram: fix memory leak
Commit 4f678a58 (mtd: fix memory leaks in phram_setup) missed two cases
where the memory allocated for name would be leaked. This commit frees
the memory when register_device() fails and on unregister_devices().

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2011-03-11 14:22:43 +00:00
..
chips mtd: fix race in cfi_cmdset_0001 driver 2011-03-11 12:09:07 +00:00
devices mtd: phram: fix memory leak 2011-03-11 14:22:43 +00:00
lpddr
maps mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
nand mtd: atmel_nand: Add DMA support to access Nandflash 2011-03-11 14:22:42 +00:00
onenand mtd: add "platform:" prefix for platform modalias 2011-03-11 14:20:05 +00:00
tests
ubi Merge git://git.infradead.org/mtd-2.6 2011-01-17 11:15:30 -08:00
afs.c
ar7part.c
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c
Kconfig mtd: drop MTD_CONCAT from Kconfig entirely 2011-03-11 14:22:41 +00:00
Makefile mtd: make MTD_CONCAT support mandatory 2011-03-11 14:22:40 +00:00
mtd_blkdevs.c mtd: mtd_blkdevs: local symbols should be static 2011-03-11 14:22:42 +00:00
mtdblock.c
mtdblock_ro.c
mtdchar.c Merge git://git.infradead.org/mtd-2.6 2011-01-17 11:15:30 -08:00
mtdconcat.c mtd: adapt writebufsize calculation for concat 2011-03-11 14:22:42 +00:00
mtdcore.c mtd: local symbols should be static 2011-03-11 14:22:41 +00:00
mtdcore.h
mtdoops.c Merge git://git.infradead.org/mtd-2.6 2011-01-17 11:15:30 -08:00
mtdpart.c mtd: mtdpart: disallow reading OOB past the end of the partition 2011-01-17 15:25:48 +00:00
mtdsuper.c convert get_sb_mtd() users to ->mount() 2010-10-29 04:16:26 -04:00
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h mtd: sm_ftl: cosmetic, use bool when possible 2010-10-25 01:33:08 +01:00
ssfdc.c