From: Benjamin Wang Date: Sun, 26 Aug 2012 10:04:10 +0000 (+0800) Subject: target: Check idr_get_new return value in iscsi_login_zero_tsih_s1 X-Git-Tag: v3.6-rc6~3^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13b5533a38b1eec9d61a07711dc075f03ae47a36;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed