mirror-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 mtd: Explicitly include correct DT includes 2023-07-27 17:03:41 +02:00
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 mtd: Explicitly include correct DT includes 2023-07-27 17:03:41 +02:00
physmap-gemini.h
physmap-ixp4xx.c mtd: Explicitly include correct DT includes 2023-07-27 17:03:41 +02:00
physmap-ixp4xx.h mtd: Explicitly include correct DT includes 2023-07-27 17:03:41 +02:00
physmap-versatile.c mtd: maps: fix -Wvoid-pointer-to-enum-cast warning 2023-08-18 16:38:54 +02:00
physmap-versatile.h
pismo.c mtd: maps: pismo: Switch back to use i2c_driver's .probe() 2023-06-19 10:26:03 +02:00
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 mtd: maps: vmu-flash: Fix the (mtd core) switch to ref counters 2023-12-14 16:43:17 +01:00