linux/drivers/mtd/maps
Julia Lawall af32b36095 mtd: lantiq-flash: drop iounmap for devm_ allocated data
Data allocated with devm_ioremap or devm_ioremap_nocache should not be
freed using iounmap, because doing so causes a dangling pointer, and a
subsequent double free.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression x;
@@
(
 x = devm_ioremap(...)
|
 x = devm_ioremap_nocache(...)
)

@@
expression r.x;
@@
* iounmap(x)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:24:05 +00:00
..
Kconfig mtd: maps: remove the now unused bcm963xx-flash 2012-01-09 18:16:39 +00:00
Makefile mtd: maps: remove the now unused bcm963xx-flash 2012-01-09 18:16:39 +00:00
amd76xrom.c
autcpu12-nvram.c
bfin-async-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
cdb89712.c
cfi_flagadm.c
ck804xrom.c
dbox2-flash.c
dc21285.c
dilnetpc.c
dmv182.c
esb2rom.c
fortunet.c
gpio-addr-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
h720x-flash.c mtd: h720x-flash.c: use mtd_device_parse_register 2011-09-11 15:02:06 +03:00
ichxrom.c
impa7.c mtd: impa7.c: use mtd_device_parse_register 2011-09-11 15:02:06 +03:00
intel_vr_nor.c mtd: intel_vr_nor.c: use mtd_device_parse_register 2011-09-11 15:02:06 +03:00
ixp4xx.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
ixp2000.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
l440gx.c
lantiq-flash.c mtd: lantiq-flash: drop iounmap for devm_ allocated data 2012-01-09 18:24:05 +00:00
latch-addr-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
map_funcs.c
mbx860.c
netsc520.c
nettel.c
octagon-5066.c
pci.c
pcmciamtd.c mtd: cleanup last uses of MTD_DEBUG config macros 2011-09-11 15:02:16 +03:00
physmap.c mtd: maps: physmap: allow partition parsers for physmap_flash_data 2012-01-09 18:16:15 +00:00
physmap_of.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
pismo.c
plat-ram.c mtd: plat_ram: call mtd_device_register only if partition data exists 2011-12-19 11:13:52 +00:00
pmcmsp-flash.c
pxa2xx-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
rbtx4939-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
rpxlite.c
sa1100-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c
solutionengine.c mtd: solutionengine.c: use mtd_device_parse_register 2011-09-11 15:02:07 +03:00
sun_uflash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
tqm8xxl.c
ts5500_flash.c
tsunami_flash.c
uclinux.c
vmax301.c
vmu-flash.c
wr_sbc82xx_flash.c mtd: wr_sbc82xx_flash.c: use mtd_device_parse_register 2011-09-11 15:02:07 +03:00