summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Easi <arun.easi@qlogic.com>2014-09-25 11:16:51 +0200
committerChristoph Hellwig <hch@lst.de>2014-09-25 14:25:03 +0200
commitd2749ffadb4c76c04ad82645cc86a2fa39ceff3e (patch)
tree9bccb9772658612838620371f204a20e568ed598
parentqla2xxx: Allow user to change ql2xfdmienable value. (diff)
downloadlinux-d2749ffadb4c76c04ad82645cc86a2fa39ceff3e.tar.xz
linux-d2749ffadb4c76c04ad82645cc86a2fa39ceff3e.zip
qla2xxx: Unload of qla2xxx driver crashes the machine.
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>
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 0f9dcf61c13a..4880f0b2daa3 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -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);