commit | 13b5533a38b1eec9d61a07711dc075f03ae47a36 | [log] [tgz] |
---|---|---|
author | Benjamin Wang <cpwang2009@gmail.com> | Sun Aug 26 18:04:10 2012 +0800 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Sun Aug 26 23:27:08 2012 -0700 |
tree | 9b38e6c30109c74689dfca14f123eb71ff2e7f1e | |
parent | 4c054ba63ad47ef244cfcfa1cea38134620a5bae [diff] |
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: Benjamin Wang <cpwang2009@gmail.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>