aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx')
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 29bd2258ab6f..97ce44bb1ce9 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -5449,6 +5449,13 @@ static void __devexit qla4xxx_remove_adapter(struct pci_dev *pdev)
5449{ 5449{
5450 struct scsi_qla_host *ha; 5450 struct scsi_qla_host *ha;
5451 5451
5452 /*
5453 * If the PCI device is disabled then it means probe_adapter had
5454 * failed and resources already cleaned up on probe_adapter exit.
5455 */
5456 if (!pci_is_enabled(pdev))
5457 return;
5458
5452 ha = pci_get_drvdata(pdev); 5459 ha = pci_get_drvdata(pdev);
5453 5460
5454 if (is_qla40XX(ha)) 5461 if (is_qla40XX(ha))