diff options
author | Richard Weinberger <richard@nod.at> | 2011-11-18 00:44:27 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-01-10 23:01:18 (GMT) |
commit | 9fc397fc0878c9540af20cbffc4d546541fe8b23 (patch) | |
tree | f3168c2006b1c48f879684c0d71e877989c5edbd /drivers/scsi/device_handler/scsi_dh_rdac.c | |
parent | 7b3480f8b701170c046e1ed362946f5f0d005e13 (diff) | |
download | linux-9fc397fc0878c9540af20cbffc4d546541fe8b23.tar.xz |
[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/scsi_dh_rdac.c')
-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 841ebf4..53a31c7 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; |