diff options
author | Richard Weinberger <richard@nod.at> | 2011-11-18 01:44:27 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-01-10 17:01:18 -0600 |
commit | 9fc397fc0878c9540af20cbffc4d546541fe8b23 (patch) | |
tree | f3168c2006b1c48f879684c0d71e877989c5edbd | |
parent | 7b3480f8b701170c046e1ed362946f5f0d005e13 (diff) |
[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>
-rw-r--r-- | 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 841ebf4a678..53a31c753cb 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; |