Skip to content
Commit 13b5533a authored by Benjamin Wang's avatar Benjamin Wang Committed by Nicholas Bellinger
Browse files

target: Check idr_get_new return value in iscsi_login_zero_tsih_s1



This patch updates iscsi_login_zero_tsih_s1() usage for generating
iscsi_session->session_index to properly check the return value from
idr_get_new(), and reject the iSCSI login attempt with exception
status ISCSI_LOGIN_STATUS_NO_RESOURCES in the event of a failure.

Signed-off-by: default avatarBenjamin Wang <cpwang2009@gmail.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 4c054ba6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment