summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_os.c
diff options
context:
space:
mode:
authorChad Dupuis2014-09-25 11:17:02 +0200
committerChristoph Hellwig2014-09-25 14:25:05 +0200
commit61d41f610debd557b1c451338fa0afaac9dd8719 (patch)
tree9b9d13f3acc62809e1ca6366f0ebbf162eb6c576 /drivers/scsi/qla2xxx/qla_os.c
parentqla2xxx: Mark port lost when we receive an RSCN for it. (diff)
downloadkernel-qcow2-linux-61d41f610debd557b1c451338fa0afaac9dd8719.tar.gz
kernel-qcow2-linux-61d41f610debd557b1c451338fa0afaac9dd8719.tar.xz
kernel-qcow2-linux-61d41f610debd557b1c451338fa0afaac9dd8719.zip
qla2xxx: Disable PCI device in shutdown handler.
Disable the PCI device during shutdown to prevent any races with other PCI code such as the AER handling code. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_os.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index daabf8c9c298..2c3c6afe88a3 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -3032,6 +3032,9 @@ qla2x00_shutdown(struct pci_dev *pdev)
qla2x00_free_irqs(vha);
qla2x00_free_fw_dump(ha);
+
+ pci_disable_pcie_error_reporting(pdev);
+ pci_disable_device(pdev);
}
/* Deletes all the virtual ports for a given ha */