|
|
@@ -2038,6 +2038,7 @@ static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
|
|
|
|
|
if (twa_initialize_device_extension(tw_dev)) {
|
|
|
TW_PRINTK(tw_dev->host, TW_DRIVER, 0x25, "Failed to initialize device extension");
|
|
|
+ retval = -ENOMEM;
|
|
|
goto out_free_device_extension;
|
|
|
}
|
|
|
|
|
|
@@ -2060,6 +2061,7 @@ static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
|
|
tw_dev->base_addr = ioremap(mem_addr, mem_len);
|
|
|
if (!tw_dev->base_addr) {
|
|
|
TW_PRINTK(tw_dev->host, TW_DRIVER, 0x35, "Failed to ioremap");
|
|
|
+ retval = -ENOMEM;
|
|
|
goto out_release_mem_region;
|
|
|
}
|
|
|
|
|
|
@@ -2067,8 +2069,10 @@ static int twa_probe(struct pci_dev *pdev, const struct pci_device_id *dev_id)
|
|
|
TW_DISABLE_INTERRUPTS(tw_dev);
|
|
|
|
|
|
/* Initialize the card */
|
|
|
- if (twa_reset_sequence(tw_dev, 0))
|
|
|
+ if (twa_reset_sequence(tw_dev, 0)) {
|
|
|
+ retval = -ENOMEM;
|
|
|
goto out_iounmap;
|
|
|
+ }
|
|
|
|
|
|
/* Set host specific parameters */
|
|
|
if ((pdev->device == PCI_DEVICE_ID_3WARE_9650SE) ||
|