Skip to content

Commit

Permalink
[SCSI] scsi_dh_rdac: Fix error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Weinberger authored and James Bottomley committed Jan 10, 2012
1 parent 7b3480f commit 9fc397f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/device_handler/scsi_dh_rdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9fc397f

Please sign in to comment.