diff options
author | Benjamin Wang <cpwang2009@gmail.com> | 2012-08-26 06:04:10 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-08-27 02:27:08 -0400 |
commit | 13b5533a38b1eec9d61a07711dc075f03ae47a36 (patch) | |
tree | 9b38e6c30109c74689dfca14f123eb71ff2e7f1e /drivers/misc/hpilo.c | |
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>
Diffstat (limited to 'drivers/misc/hpilo.c')
0 files changed, 0 insertions, 0 deletions