linux/drivers/mtd/maps
Abdun Nihaal a697c671cc mtd: maps: pcmciamtd: fix potential memory leak in pcmciamtd_detach()
The memory allocated for struct pcmciamtd_dev in pcmciamtd_probe() is
not freed in the corresponding remove function pcmciamtd_detach().
Fix that by freeing it in the remove function.

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
2025-11-17 11:49:14 +01:00
..
Kconfig mtd: Remove support for Carillo Ranch driver 2024-02-26 11:29:36 +01:00
Makefile mtd: physmap: Use *-y instead of *-objs in Makefile 2024-05-27 13:39:53 +02:00
amd76xrom.c
cfi_flagadm.c
ck804xrom.c
dc21285.c
esb2rom.c
ichxrom.c
impa7.c
l440gx.c
lantiq-flash.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
map_funcs.c mtd: add missing MODULE_DESCRIPTION() macros 2024-07-01 11:56:28 +02:00
netsc520.c
nettel.c
pci.c
pcmciamtd.c mtd: maps: pcmciamtd: fix potential memory leak in pcmciamtd_detach() 2025-11-17 11:49:14 +01:00
physmap-bt1-rom.c
physmap-bt1-rom.h
physmap-core.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
physmap-gemini.c
physmap-gemini.h
physmap-ixp4xx.c
physmap-ixp4xx.h
physmap-versatile.c
physmap-versatile.h
pismo.c
plat-ram.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
pxa2xx-flash.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
sa1100-flash.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c
sun_uflash.c mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
ts5500_flash.c
tsunami_flash.c
uclinux.c
vmu-flash.c