diff options
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_nego.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_nego.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/target/iscsi/iscsi_target_nego.c b/drivers/target/iscsi/iscsi_target_nego.c index e9053a04f24c..9d902aefe01a 100644 --- a/drivers/target/iscsi/iscsi_target_nego.c +++ b/drivers/target/iscsi/iscsi_target_nego.c | |||
@@ -620,8 +620,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log | |||
620 | login->req_buf, | 620 | login->req_buf, |
621 | payload_length, | 621 | payload_length, |
622 | conn); | 622 | conn); |
623 | if (ret < 0) | 623 | if (ret < 0) { |
624 | iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_INITIATOR_ERR, | ||
625 | ISCSI_LOGIN_STATUS_INIT_ERR); | ||
624 | return -1; | 626 | return -1; |
627 | } | ||
625 | 628 | ||
626 | if (login->first_request) | 629 | if (login->first_request) |
627 | if (iscsi_target_check_first_request(conn, login) < 0) | 630 | if (iscsi_target_check_first_request(conn, login) < 0) |
@@ -636,8 +639,11 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log | |||
636 | login->rsp_buf, | 639 | login->rsp_buf, |
637 | &login->rsp_length, | 640 | &login->rsp_length, |
638 | conn->param_list); | 641 | conn->param_list); |
639 | if (ret < 0) | 642 | if (ret < 0) { |
643 | iscsit_tx_login_rsp(conn, ISCSI_STATUS_CLS_INITIATOR_ERR, | ||
644 | ISCSI_LOGIN_STATUS_INIT_ERR); | ||
640 | return -1; | 645 | return -1; |
646 | } | ||
641 | 647 | ||
642 | if (!login->auth_complete && | 648 | if (!login->auth_complete && |
643 | ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication) { | 649 | ISCSI_TPG_ATTRIB(ISCSI_TPG_C(conn))->authentication) { |