kernel-ark/drivers/mtd/maps
H Hartley Sweeten 4b56ffcace mtd: Fix kernel NULL pointer dereference in physmap.c
During the probe for physmap platform flash devices there are a
number error exit conditions that all do a goto err_out which
then calls physmap_flash_remove().  In that function one of the
cleanup steps is:

#ifdef CONFIG_MTD_CONCAT
	if (info->cmtd != info->mtd[0])
		mtd_concat_destroy(info->cmtd);
#endif

This test will succeed since info->cmtd == NULL and info->mtd[0] is
valid.

Fix this by exiting the remove function when info->cmtd == NULL.

Also, cleanup the #ifdef CONFIG_MTD_PARTITIONS stuff by using
mtd_has_partitions().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-10-20 09:36:04 +09:00
..
alchemy-flash.c
amd76xrom.c
autcpu12-nvram.c
bfin-async-flash.c Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
cdb89712.c
ceiva.c Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
cfi_flagadm.c
ck804xrom.c [MTD] [MAPS] Remove MODULE_DEVICE_TABLE() from ck804rom driver. 2009-02-27 04:52:45 +09:00
dbox2-flash.c
dc21285.c Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
dilnetpc.c
dmv182.c
edb7312.c
esb2rom.c
fortunet.c
gpio-addr-flash.c mtd/maps: gpio-addr-flash: pull in linux/ headers rather than asm/ 2009-09-24 12:50:32 -07:00
h720x-flash.c
ichxrom.c
impa7.c
integrator-flash.c mtd: maps: Remove BUS_ID_SIZE from integrator_flash 2009-06-24 16:02:06 +01:00
intel_vr_nor.c
ixp4xx.c
ixp2000.c trivial: fix typo "to to" in multiple files 2009-09-21 15:14:55 +02:00
Kconfig mtd: maps: remove obsolete ipaq-flash driver 2009-10-17 15:41:26 +01:00
l440gx.c
Makefile mtd: maps: remove obsolete ipaq-flash driver 2009-10-17 15:41:26 +01:00
map_funcs.c
mbx860.c
netsc520.c
nettel.c
octagon-5066.c
omap_nor.c [MTD] support driver model updates 2009-04-04 14:32:59 +01:00
pci.c
pcmciamtd.c pcmcia: convert pcmciamtd driver to use new CIS helpers 2009-10-19 08:40:37 +09:00
physmap_of.c mtd: maps: add mtd-ram support to physmap_of 2009-09-19 13:15:26 -07:00
physmap.c mtd: Fix kernel NULL pointer dereference in physmap.c 2009-10-20 09:36:04 +09:00
plat-ram.c mtd: plat-ram: use resource_size 2009-09-04 09:37:34 +01:00
pmcmsp-flash.c mtd: pmcmsp-flash: fix error paths in init_msp_flash 2009-09-04 09:42:06 +01:00
pxa2xx-flash.c Nicolas Pitre has a new email address 2009-09-15 09:37:12 -07:00
rbtx4939-flash.c [MTD] Remove mtd->{suspend,resume} calls from board drivers 2009-05-26 16:45:44 +01:00
redwood.c
rpxlite.c
sa1100-flash.c mtd: maps/sa1100: fix section mismatch 2009-10-17 15:37:13 +01:00
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 mtd/maps: uclinux: fix building when partition support is disabled 2009-09-19 11:44:51 -07:00
vmax301.c
vmu-flash.c mtd: flash mapping support for Dreamcast VMU. 2009-03-10 18:03:02 +09:00
wr_sbc82xx_flash.c