qla2xxx: Unload of qla2xxx driver crashes the machine.
authorArun Easi <arun.easi@qlogic.com>
Thu, 25 Sep 2014 09:16:51 +0000 (05:16 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 25 Sep 2014 12:25:03 +0000 (14:25 +0200)
Signed-off-by: Arun Easi <arun.easi@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 0f9dcf61c13a6b85d5b7f8d6d40af62ede663c73..4880f0b2daa3f4142f4d9ab794d283cda1a327a1 100644 (file)
@@ -3193,10 +3193,10 @@ qla2x00_remove_one(struct pci_dev *pdev)
 
        qla2x00_free_device(base_vha);
 
-       scsi_host_put(base_vha->host);
-
        qla2x00_clear_drv_active(ha);
 
+       scsi_host_put(base_vha->host);
+
        qla2x00_unmap_iobases(ha);
 
        pci_release_selected_regions(ha->pdev, ha->bars);