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 mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
autcpu12-nvram.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
bfin-async-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
cdb89712.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
cfi_flagadm.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
ck804xrom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dbox2-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dc21285.c mtd: dc21285.c: use mtd_device_parse_register 2011-09-11 15:02:06 +03:00
dilnetpc.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dmv182.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
esb2rom.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
fortunet.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
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 mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
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 mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
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 MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mbx860.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
netsc520.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
nettel.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
octagon-5066.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pci.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
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 ARM: 6910/1: MTD: physmap: let set_vpp() pass a platform_device instead of a map_info 2011-05-20 22:27:34 +01:00
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 mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
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 mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sa1100-flash.c mtd: convert drivers/mtd/* to use module_platform_driver() 2012-01-09 18:12:35 +00:00
sbc_gxx.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sc520cdp.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
scb2_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
scx200_docflash.c mtd: scx200_docflash: convert to mtd_device_register() 2011-05-25 02:22:04 +01:00
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 mtd: tqm8xll: convert to mtd_device_register() 2011-05-25 02:22:57 +01:00
ts5500_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
tsunami_flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
uclinux.c mtd: uclinux: convert to mtd_device_register() 2011-05-25 02:23:09 +01:00
vmax301.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
vmu-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
wr_sbc82xx_flash.c mtd: wr_sbc82xx_flash.c: use mtd_device_parse_register 2011-09-11 15:02:07 +03:00