aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_iscsi.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-18 21:23:28 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-05-02 18:31:50 -0400
commitbcab2ccdc61679b6e33d35ae3fe8275df8e20c61 (patch)
treee49f24eca32cdd28714166ed81b576dcc1f40eba /drivers/scsi/scsi_transport_iscsi.c
parent2267a290b0900d65259cc06e11d4c996adfd957c (diff)
[SCSI] scsi_transport_iscsi: fix error return code in iscsi_transport_init()
Fix to return -ENOMEM in the create workqueue error case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_transport_iscsi.c')
-rw-r--r--drivers/scsi/scsi_transport_iscsi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 47799a33d6ca..475265a51a51 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -3985,8 +3985,10 @@ static __init int iscsi_transport_init(void)
3985 } 3985 }
3986 3986
3987 iscsi_eh_timer_workq = create_singlethread_workqueue("iscsi_eh"); 3987 iscsi_eh_timer_workq = create_singlethread_workqueue("iscsi_eh");
3988 if (!iscsi_eh_timer_workq) 3988 if (!iscsi_eh_timer_workq) {
3989 err = -ENOMEM;
3989 goto release_nls; 3990 goto release_nls;
3991 }
3990 3992
3991 return 0; 3993 return 0;
3992 3994