mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Reviewed-by: Mike Christie <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
2267a290b0
commit
bcab2ccdc6
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue