summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-11-18 01:44:27 +0100
committerJames Bottomley <JBottomley@Parallels.com>2012-01-11 00:01:18 +0100
commit9fc397fc0878c9540af20cbffc4d546541fe8b23 (patch)
treef3168c2006b1c48f879684c0d71e877989c5edbd /drivers
parentMerge tag 'for-linus-3.3' of git://git.infradead.org/mtd-2.6 (diff)
downloadlinux-9fc397fc0878c9540af20cbffc4d546541fe8b23.tar.xz
linux-9fc397fc0878c9540af20cbffc4d546541fe8b23.zip
[SCSI] scsi_dh_rdac: Fix error path
If create_singlethread_workqueue() failes, rdac_init should fail too. Signed-off-by: Richard Weinberger <richard@nod.at> Acked-by: "Moger, Babu" <Babu.Moger@netapp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_rdac.c2
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 841ebf4a6788..53a31c753cb1 100644
--- a/drivers/scsi/device_handler/scsi_dh_rdac.c
+++ b/drivers/scsi/device_handler/scsi_dh_rdac.c
@@ -953,6 +953,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;