1
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
cfi_flagadm.c
ck804xrom.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
dbox2-flash.c
dc21285.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
dilnetpc.c
dmv182.c
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
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
mbx860.c
netsc520.c
nettel.c
octagon-5066.c
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
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
sa1100-flash.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
sbc_gxx.c
sc520cdp.c
scb2_flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
scx200_docflash.c
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
ts5500_flash.c
tsunami_flash.c
uclinux.c mtd: fix wrong usage of ioremap_nocache() in uclinux.c map driver 2012-09-29 14:58:05 +01:00
vmax301.c
vmu-flash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00