Commit f555e052 authored by Tomas Henzl's avatar Tomas Henzl Committed by James Bottomley
Browse files

[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: default avatarTomas Henzl <thenzl@redhat.com>
Acked-by: default avatar"Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 8fb2ef89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8122,8 +8122,8 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 out_thread_fail:
	list_del(&ioc->list);
	scsi_remove_host(shost);
	scsi_host_put(shost);
 out_add_shost_fail:
	scsi_host_put(shost);
	return -ENODEV;
}