diff options
author | Tomas Henzl <thenzl@redhat.com> | 2012-04-17 09:24:48 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-10 03:59:23 -0400 |
commit | f555e05265657476da5839cdb478e8220eb9965d (patch) | |
tree | 2e93552bb59bc768fc80203ab57afdf597551f49 /drivers/scsi | |
parent | 8fb2ef89b696624ea9853868e370d2e132e76f54 (diff) |
[SCSI] mpt2sas: move the scsi_host_put to the right place
When scsi_add_host fails the scsi_host_put should be called.
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_scsih.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index f612d1dc7baf..76973e8ca4ba 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c +++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c | |||
@@ -8122,8 +8122,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
8122 | out_thread_fail: | 8122 | out_thread_fail: |
8123 | list_del(&ioc->list); | 8123 | list_del(&ioc->list); |
8124 | scsi_remove_host(shost); | 8124 | scsi_remove_host(shost); |
8125 | scsi_host_put(shost); | ||
8126 | out_add_shost_fail: | 8125 | out_add_shost_fail: |
8126 | scsi_host_put(shost); | ||
8127 | return -ENODEV; | 8127 | return -ENODEV; |
8128 | } | 8128 | } |
8129 | 8129 | ||