Received from Mark Salyzyn Some of the error return paths during initialization resulted in a zero report to caller Signed-off-by: Mark Haverkamp <markh@xxxxxxxx> --- Applies to the scsi-misc-2.6 git tree. --- scsi-misc-aac.orig/drivers/scsi/aacraid/linit.c 2006-03-22 11:17:41.000000000 -0800 +++ scsi-misc-aac/drivers/scsi/aacraid/linit.c 2006-03-22 11:17:46.000000000 -0800 @@ -799,10 +799,11 @@ error = pci_enable_device(pdev); if (error) goto out; + error = -ENODEV; if (pci_set_dma_mask(pdev, DMA_32BIT_MASK) || pci_set_consistent_dma_mask(pdev, DMA_32BIT_MASK)) - goto out; + goto out_disable_pdev; /* * If the quirk31 bit is set, the adapter needs adapter * to driver communication memory to be allocated below 2gig @@ -810,7 +811,7 @@ if (aac_drivers[index].quirks & AAC_QUIRK_31BIT) if (pci_set_dma_mask(pdev, 0x7FFFFFFFULL) || pci_set_consistent_dma_mask(pdev, 0x7FFFFFFFULL)) - goto out; + goto out_disable_pdev; pci_set_master(pdev); -- Mark Haverkamp <markh@xxxxxxxx> - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html