mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
[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:
parent
7b3480f8b7
commit
9fc397fc08
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue