linux/drivers/mtd/maps
Julia Lawall 3ee7451a02 mtd: ts5500_flash: avoid calling map_destroy on NULL
map_destroy dereferences its argument.  The call is furthermore only
reachable when this argument is NULL.  Thus the call is dropped.

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

// <smpl>
@@
expression *x;
@@

*if (x == NULL)
{ ...
* map_destroy(x);
  ...
  return ...;
}
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2011-03-11 14:22:44 +00:00
..
amd76xrom.c mtd: amd76xrom: fix oops at boot when resources are not available 2011-03-11 14:19:09 +00:00
autcpu12-nvram.c
bcm963xx-flash.c mtd: bcm963xx-flash: try JEDEC probe if CFI fails 2010-12-03 16:25:16 +00:00
bfin-async-flash.c
cdb89712.c
ceiva.c mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
cfi_flagadm.c
ck804xrom.c mtd: maps: Use printf extension %pR for struct resource 2010-12-03 16:29:54 +00:00
dbox2-flash.c
dc21285.c
dilnetpc.c
dmv182.c
edb7312.c
esb2rom.c mtd: maps: Use printf extension %pR for struct resource 2010-12-03 16:29:54 +00:00
fortunet.c
gpio-addr-flash.c mtd: maps: gpio-addr-flash: fix warnings and make more portable 2010-10-25 01:16:17 +01:00
h720x-flash.c
ichxrom.c mtd: maps: Use printf extension %pR for struct resource 2010-12-03 16:29:54 +00:00
impa7.c
integrator-flash.c mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
intel_vr_nor.c
ixp4xx.c mtd: ixp4xx: add support for static flash partitions 2010-08-04 10:57:00 +01:00
ixp2000.c
Kconfig mtd: drop MTD_CONCAT dependencies from Kconfig 2011-03-11 14:22:40 +00:00
l440gx.c
Makefile mtd: add Broadcom BCM63xx image tag partition parser 2010-10-25 00:13:05 +01:00
map_funcs.c
mbx860.c
netsc520.c
nettel.c
octagon-5066.c
pci.c
pcmciamtd.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2010-10-30 12:35:11 +01:00
physmap_of.c mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
physmap.c mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
pismo.c
plat-ram.c
pmcmsp-flash.c
pxa2xx-flash.c ARM: pxa: fix pxa2xx-flash section mismatch 2010-11-30 20:14:04 +08:00
rbtx4939-flash.c
rpxlite.c
sa1100-flash.c mtd: drop CONFIG_MTD_CONCAT ifdefs 2011-03-11 14:22:40 +00:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c
scx200_docflash.c mtd: maps: Use printf extension %pR for struct resource 2010-12-03 16:29:54 +00:00
solutionengine.c
sun_uflash.c of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
tqm8xxl.c mtd: remove unnecessary casts of void ptr returning alloc function return values 2010-12-03 16:29:22 +00:00
ts5500_flash.c mtd: ts5500_flash: avoid calling map_destroy on NULL 2011-03-11 14:22:44 +00:00
tsunami_flash.c
uclinux.c
vmax301.c
vmu-flash.c
wr_sbc82xx_flash.c