[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>
This commit is contained in:
committed by
James Bottomley
parent
7b3480f8b7
commit
9fc397fc08
@@ -953,6 +953,8 @@ static int __init rdac_init(void)
|
|||||||
if (!kmpath_rdacd) {
|
if (!kmpath_rdacd) {
|
||||||
scsi_unregister_device_handler(&rdac_dh);
|
scsi_unregister_device_handler(&rdac_dh);
|
||||||
printk(KERN_ERR "kmpath_rdacd creation failed.\n");
|
printk(KERN_ERR "kmpath_rdacd creation failed.\n");
|
||||||
|
|
||||||
|
r = -EINVAL;
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
return r;
|
return r;
|
||||||
|
Reference in New Issue
Block a user