Skip to content

Commit

Permalink
[SCSI] qla2xxx: Remove bad call to fc_remove_host() during probe fail…
Browse files Browse the repository at this point in the history
…ure.

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>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Sep 5, 2005
1 parent afb046e commit 86cd6ba
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 86cd6ba

Please sign in to comment.