]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/scsi/megaraid.c
udmabuf: separate out creating/destroying scatter-table
[linux.git] / drivers / scsi / megaraid.c
index 45a66048801be99b9d25204dd2a69c2f0821fb36..ff6d4aa924213074df0624a273e9e5ba3c1d9074 100644 (file)
@@ -4183,11 +4183,11 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
                 */
                if (pdev->subsystem_vendor == PCI_VENDOR_ID_COMPAQ &&
                    pdev->subsystem_device == 0xC000)
-                       return -ENODEV;
+                       goto out_disable_device;
                /* Now check the magic signature byte */
                pci_read_config_word(pdev, PCI_CONF_AMISIG, &magic);
                if (magic != HBA_SIGNATURE_471 && magic != HBA_SIGNATURE)
-                       return -ENODEV;
+                       goto out_disable_device;
                /* Ok it is probably a megaraid */
        }