e58a66d84b
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> |
||
---|---|---|
.. | ||
amd76xrom.c | ||
autcpu12-nvram.c | ||
bfin-async-flash.c | ||
cdb89712.c | ||
cfi_flagadm.c | ||
ck804xrom.c | ||
dbox2-flash.c | ||
dc21285.c | ||
dilnetpc.c | ||
dmv182.c | ||
esb2rom.c | ||
gpio-addr-flash.c | ||
h720x-flash.c | ||
ichxrom.c | ||
impa7.c | ||
intel_vr_nor.c | ||
ixp4xx.c | ||
ixp2000.c | ||
Kconfig | ||
l440gx.c | ||
lantiq-flash.c | ||
latch-addr-flash.c | ||
Makefile | ||
map_funcs.c | ||
mbx860.c | ||
netsc520.c | ||
nettel.c | ||
octagon-5066.c | ||
pci.c | ||
pcmciamtd.c | ||
physmap_of.c | ||
physmap.c | ||
pismo.c | ||
plat-ram.c | ||
pmcmsp-flash.c | ||
pxa2xx-flash.c | ||
rbtx4939-flash.c | ||
rpxlite.c | ||
sa1100-flash.c | ||
sbc_gxx.c | ||
sc520cdp.c | ||
scb2_flash.c | ||
scx200_docflash.c | ||
solutionengine.c | ||
sun_uflash.c | ||
tqm8xxl.c | ||
ts5500_flash.c | ||
tsunami_flash.c | ||
uclinux.c | ||
vmax301.c | ||
vmu-flash.c |