projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fb2ef8
)
[SCSI] mpt2sas: move the scsi_host_put to the right place
author
Tomas Henzl
<thenzl@redhat.com>
Tue, 17 Apr 2012 13:24:48 +0000
(15:24 +0200)
committer
James Bottomley
<JBottomley@Parallels.com>
Thu, 10 May 2012 07:59:23 +0000
(08:59 +0100)
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>
drivers/scsi/mpt2sas/mpt2sas_scsih.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index f612d1dc7baf0eb678d341afbe8f041c5af1034e..76973e8ca4ba38029309e102021df286493291e9 100644
(file)
--- 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)
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;
}