summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/device_handler
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-11-18 01:44:27 +0100
committerJames Bottomley <JBottomley@Parallels.com>2012-01-10 17:01:18 -0600
commit9fc397fc0878c9540af20cbffc4d546541fe8b23 (patch)
treef3168c2006b1c48f879684c0d71e877989c5edbd /drivers/scsi/device_handler
parent7b3480f8b701170c046e1ed362946f5f0d005e13 (diff)
downloadblackbird-op-linux-9fc397fc0878c9540af20cbffc4d546541fe8b23.tar.gz
blackbird-op-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/scsi/device_handler')
-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;
OpenPOWER on IntegriCloud