From: Richard Weinberger Date: Fri, 18 Nov 2011 00:44:27 +0000 (+0100) Subject: [SCSI] scsi_dh_rdac: Fix error path X-Git-Tag: Ubuntu-5.2.0-15.16~18855^2~48 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=9fc397fc0878c9540af20cbffc4d546541fe8b23;p=mirror_ubuntu-eoan-kernel.git [SCSI] scsi_dh_rdac: Fix error path If create_singlethread_workqueue() failes, rdac_init should fail too. Signed-off-by: Richard Weinberger Acked-by: "Moger, Babu" Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/device_handler/scsi_dh_rdac.c b/drivers/scsi/device_handler/scsi_dh_rdac.c index 841ebf4a6788..53a31c753cb1 100644 --- a/drivers/scsi/device_handler/scsi_dh_rdac.c +++ b/drivers/scsi/device_handler/scsi_dh_rdac.c @@ -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;