[SCSI] scsi_dh_rdac: Fix error path
authorRichard Weinberger <richard@nod.at>
Fri, 18 Nov 2011 00:44:27 +0000 (01:44 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 10 Jan 2012 23:01:18 +0000 (17:01 -0600)
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>
drivers/scsi/device_handler/scsi_dh_rdac.c

index 841ebf4a6788fc3895d5ddd31b8a67f7ce49ab55..53a31c753cb1e682ead92268901bc966845a1996 100644 (file)
@@ -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;