--- zzzz-none-000/linux-2.6.19.2/drivers/scsi/aic94xx/aic94xx_sds.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/drivers/scsi/aic94xx/aic94xx_sds.c 2007-01-11 07:38:19.000000000 +0000 @@ -630,6 +630,10 @@ reg = asd_read_reg_dword(asd_ha, EXSICNFGR); + if (!(reg & FLASHEX)) { + ASD_DPRINTK("flash doesn't exist\n"); + return -ENOENT; + } if (pci_read_config_dword(asd_ha->pcidev, PCI_CONF_FLSH_BAR, &asd_ha->hw_prof.flash.bar)) { asd_printk("couldn't read PCI_CONF_FLSH_BAR of %s\n",