1
0
Fork 0

[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>
wifi-calibration
Tomas Henzl 2012-04-17 15:24:48 +02:00 committed by James Bottomley
parent 8fb2ef89b6
commit f555e05265
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}