qla2xxx: Disable PCI device in shutdown handler.
authorChad Dupuis <chad.dupuis@qlogic.com>
Thu, 25 Sep 2014 09:17:02 +0000 (05:17 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:05 +0000 (14:25 +0200)
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>
drivers/scsi/qla2xxx/qla_os.c

index daabf8c9c298d8076a66ef3ce90ab6ff83a1fc3d..2c3c6afe88a3e7aa72f7390acb99b86bb2c80280 100644 (file)
@@ -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 */