diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-28 16:32:35 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-11-02 11:57:12 -0400 |
commit | 7e32da55e26b80d57961681e53aa67938268db3f (patch) | |
tree | c56edb6b8267a1bfeaebdfe5ae6f8bcff3e7f592 /drivers/target | |
parent | b8a11d7399173dcf23b6d0ca4f416bdf1eba982e (diff) |
iscsi-target: Add missing CMDSN_LOWER_THAN_EXP check in iscsit_handle_scsi_cmd
This patch adds a missing CMDSN_LOWER_THAN_EXP return check for
iscsit_sequence_cmd() in iscsit_handle_scsi_cmd() that was incorrectly
dropped during the v3.1-rc cleanups to use iscsit_sequence_cmd().
Cc: Andy Grover <agrover@redhat.com>
Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/iscsi/iscsi_target.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 4d01768fcd90..7855a63d49fc 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -1079,7 +1079,9 @@ attach_cmd: | |||
1079 | */ | 1079 | */ |
1080 | if (!cmd->immediate_data) { | 1080 | if (!cmd->immediate_data) { |
1081 | cmdsn_ret = iscsit_sequence_cmd(conn, cmd, hdr->cmdsn); | 1081 | cmdsn_ret = iscsit_sequence_cmd(conn, cmd, hdr->cmdsn); |
1082 | if (cmdsn_ret == CMDSN_ERROR_CANNOT_RECOVER) | 1082 | if (cmdsn_ret == CMDSN_LOWER_THAN_EXP) |
1083 | return 0; | ||
1084 | else if (cmdsn_ret == CMDSN_ERROR_CANNOT_RECOVER) | ||
1083 | return iscsit_add_reject_from_cmd( | 1085 | return iscsit_add_reject_from_cmd( |
1084 | ISCSI_REASON_PROTOCOL_ERROR, | 1086 | ISCSI_REASON_PROTOCOL_ERROR, |
1085 | 1, 0, buf, cmd); | 1087 | 1, 0, buf, cmd); |