4b56ffcace
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> |
||
---|---|---|
.. | ||
alchemy-flash.c | ||
amd76xrom.c | ||
autcpu12-nvram.c | ||
bfin-async-flash.c | ||
cdb89712.c | ||
ceiva.c | ||
cfi_flagadm.c | ||
ck804xrom.c | ||
dbox2-flash.c | ||
dc21285.c | ||
dilnetpc.c | ||
dmv182.c | ||
edb7312.c | ||
esb2rom.c | ||
fortunet.c | ||
gpio-addr-flash.c | ||
h720x-flash.c | ||
ichxrom.c | ||
impa7.c | ||
integrator-flash.c | ||
intel_vr_nor.c | ||
ixp4xx.c | ||
ixp2000.c | ||
Kconfig | ||
l440gx.c | ||
Makefile | ||
map_funcs.c | ||
mbx860.c | ||
netsc520.c | ||
nettel.c | ||
octagon-5066.c | ||
omap_nor.c | ||
pci.c | ||
pcmciamtd.c | ||
physmap.c | ||
physmap_of.c | ||
plat-ram.c | ||
pmcmsp-flash.c | ||
pxa2xx-flash.c | ||
rbtx4939-flash.c | ||
redwood.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 | ||
wr_sbc82xx_flash.c |