aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Vasquez <andrew.vasquez@qlogic.com>2005-08-26 22:10:00 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-09-04 20:53:50 -0400
commit86cd6baa8294dc5b2cedd84fb5cf3944eaf5271f (patch)
tree97823923b79d9c5545cf302b24ae4a0d9eee4057
parentafb046e2be724a90f21f7cf0ba50e328005bd038 (diff)
[SCSI] qla2xxx: Remove bad call to fc_remove_host() during probe failure.
fc_remove_host() should only be called after a scsi_host has been successfully added via scsi_add_host() -- any failures while qla2xxx probing would result in an incorrect call to fc_remove_host() during cleanup. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 14f2f9077c81..5a542655d442 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1586,8 +1586,6 @@ int qla2x00_probe_one(struct pci_dev *pdev, struct qla_board_info *brd_info)
1586 return 0; 1586 return 0;
1587 1587
1588probe_failed: 1588probe_failed:
1589 fc_remove_host(ha->host);
1590
1591 qla2x00_free_device(ha); 1589 qla2x00_free_device(ha);
1592 1590
1593 scsi_host_put(host); 1591 scsi_host_put(host);