Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcab2ccd authored by Wei Yongjun's avatar Wei Yongjun Committed by James Bottomley
Browse files

[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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 2267a290
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3985,8 +3985,10 @@ static __init int iscsi_transport_init(void)
	}

	iscsi_eh_timer_workq = create_singlethread_workqueue("iscsi_eh");
	if (!iscsi_eh_timer_workq)
	if (!iscsi_eh_timer_workq) {
		err = -ENOMEM;
		goto release_nls;
	}

	return 0;