diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2014-09-25 05:17:02 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-09-25 08:25:05 -0400 |
commit | 61d41f610debd557b1c451338fa0afaac9dd8719 (patch) | |
tree | 9b9d13f3acc62809e1ca6366f0ebbf162eb6c576 /drivers/scsi/qla2xxx | |
parent | ef86cb2059a14b4024c7320999ee58e938873032 (diff) |
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')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 3 |
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) | |||
3032 | qla2x00_free_irqs(vha); | 3032 | qla2x00_free_irqs(vha); |
3033 | 3033 | ||
3034 | qla2x00_free_fw_dump(ha); | 3034 | qla2x00_free_fw_dump(ha); |
3035 | |||
3036 | pci_disable_pcie_error_reporting(pdev); | ||
3037 | pci_disable_device(pdev); | ||
3035 | } | 3038 | } |
3036 | 3039 | ||
3037 | /* Deletes all the virtual ports for a given ha */ | 3040 | /* Deletes all the virtual ports for a given ha */ |