提交 9fc397fc 编写于 作者: R Richard Weinberger 提交者: James Bottomley

[SCSI] scsi_dh_rdac: Fix error path

If create_singlethread_workqueue() failes, rdac_init should fail too.
Signed-off-by: NRichard Weinberger <richard@nod.at>
Acked-by: N"Moger, Babu" <Babu.Moger@netapp.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 7b3480f8
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册