* [PATCH] mpt2sas: fix failure path
@ 2010-08-27 13:34 Tomas Henzl
0 siblings, 0 replies; only message in thread
From: Tomas Henzl @ 2010-08-27 13:34 UTC (permalink / raw)
To: 'linux-scsi@vger.kernel.org'
Cc: 'James.Bottomley@HansenPartnership.com', Desai, Kashyap,
Moore, Eric, Prakash, Sathya
host allocated with scsi_host_alloc should be freed when
init fails
Signed-off-by: Tomas Henzl <thenzl@redhat.com>
---
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 16e99b6..1cb48ab 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -6985,6 +6985,7 @@ _scsih_probe(struct pci_dev *pdev, const struct pci_device_id *id)
list_del(&ioc->list);
scsi_remove_host(shost);
out_add_shost_fail:
+ scsi_host_put(shost);
return -ENODEV;
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-08-27 13:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 13:34 [PATCH] mpt2sas: fix failure path Tomas Henzl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).