linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] scsi_dh_rdac: Fix error path
@ 2011-11-18  0:44 Richard Weinberger
  2011-11-18 14:34 ` Moger, Babu
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Weinberger @ 2011-11-18  0:44 UTC (permalink / raw)
  To: JBottomley
  Cc: Babu.moger, Somasundaram.Krishnasamy, yanling.qi, linux-scsi,
	linux-kernel, Richard Weinberger

If create_singlethread_workqueue() failes, rdac_init should fail too.

Signed-off-by: Richard Weinberger <richard@nod.at>
---
 drivers/scsi/device_handler/scsi_dh_rdac.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c
index 1d31279..2802394 100644
--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -934,6 +934,8 @@ static int __init rdac_init(void)
 	if (!kmpath_rdacd) {
 		scsi_unregister_device_handler(&rdac_dh);
 		printk(KERN_ERR "kmpath_rdacd creation failed.\n");
+
+		r = -EINVAL;
 	}
 done:
 	return r;
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-09 22:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-18  0:44 [PATCH] scsi_dh_rdac: Fix error path Richard Weinberger
2011-11-18 14:34 ` Moger, Babu
2011-12-18 14:42   ` Richard Weinberger
2012-01-09 22:13     ` Mike Snitzer

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).