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>
This commit is contained in:
Arun Easi 2014-09-25 05:16:51 -04:00 committed by Christoph Hellwig
parent de187df867
commit d2749ffadb

View 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);