From: Andrew Vasquez Date: Sat, 27 Aug 2005 02:10:00 +0000 (-0700) Subject: [SCSI] qla2xxx: Remove bad call to fc_remove_host() during probe failure. X-Git-Tag: v2.6.14-rc1~522^2^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=86cd6baa8294dc5b2cedd84fb5cf3944eaf5271f;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 14f2f9077c8..5a542655d44 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) return 0; probe_failed: - fc_remove_host(ha->host); - qla2x00_free_device(ha); scsi_host_put(host);