linux/drivers/mtd/maps
Anton Prins e58a66d84b mtd: physmap_of: error checking to prevent a NULL pointer dereference
This patch solves a NULL pointer dereference, this may occur if the tuple
is not mappable (jumps to continue in the for-loop). Out of the loop
possible results are:
- info->list_size == 0  if no of the tuples is mappable
- info->list_size == 1
- info->list_size > 1
If no one of the supplied tuples is mappable (info->list_size == 0) and
info->cmtd will not be set. But it is used in mtd_device_parse_register, OOPS!
actually it should generate an error in this case!

Signed-off-by: Anton Prins <anton.prins@nl.bosch.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-12-10 15:31:36 +02:00
..
amd76xrom.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
autcpu12-nvram.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
bfin-async-flash.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02: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: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
dbox2-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
dc21285.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01: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: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
gpio-addr-flash.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
h720x-flash.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
ichxrom.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
impa7.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
intel_vr_nor.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
ixp4xx.c mtd: ixp4xx: oops in ixp4xx_flash_probe 2012-03-27 00:33:33 +01:00
ixp2000.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
Kconfig mtd: Drop FORTUNET support 2012-11-22 11:06:28 +02:00
l440gx.c mtd: maps: l440gx: Add reference counter to set_vpp() 2012-03-27 00:52:49 +01:00
lantiq-flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
latch-addr-flash.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
Makefile mtd: Drop FORTUNET support 2012-11-22 11:06:28 +02: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: remove use of __devexit 2012-11-22 12:07:03 +02:00
pcmciamtd.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
physmap_of.c mtd: physmap_of: error checking to prevent a NULL pointer dereference 2012-12-10 15:31:36 +02:00
physmap.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
pismo.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
plat-ram.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
pmcmsp-flash.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pxa2xx-flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
rbtx4939-flash.c mtd: maps: rbtx4939-flash: delete unneeded test 2012-09-29 15:06:26 +01:00
rpxlite.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sa1100-flash.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02: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: remove use of __devexit 2012-11-22 12:07:03 +02:00
scx200_docflash.c mtd: scx200_docflash: convert to mtd_device_register() 2011-05-25 02:22:04 +01:00
solutionengine.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
sun_uflash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02: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: fix wrong usage of ioremap_nocache() in uclinux.c map driver 2012-09-29 14:58:05 +01:00
vmax301.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
vmu-flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00