diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-11-28 01:25:14 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-12-06 01:00:54 -0500 |
commit | 7ae0b1038f9f7d4c91e9afd4dbbc98210bf1a241 (patch) | |
tree | f022457108c11b5a90d10634f2abbbf1147b2271 /drivers/target | |
parent | 7e46cf02687e40197ae07c623e660be2a2720064 (diff) |
iscsi-target: Add missing F_BIT for iscsi_tm_rsp
This patch sets the missing ISCSI_FLAG_CMD_FINAL bit in
iscsit_send_task_mgt_rsp() for a struct iscsi_tm_rsp PDU.
This usage is hardcoded for all TM response PDUs in RFC-3720
section 10.6.
Reported-by: whucecil <whucecil1999@gmail.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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/iscsi/iscsi_target.c b/drivers/target/iscsi/iscsi_target.c index 26834eff8960..02de527940de 100644 --- a/drivers/target/iscsi/iscsi_target.c +++ b/drivers/target/iscsi/iscsi_target.c | |||
@@ -3130,6 +3130,7 @@ static int iscsit_send_task_mgt_rsp( | |||
3130 | hdr = (struct iscsi_tm_rsp *) cmd->pdu; | 3130 | hdr = (struct iscsi_tm_rsp *) cmd->pdu; |
3131 | memset(hdr, 0, ISCSI_HDR_LEN); | 3131 | memset(hdr, 0, ISCSI_HDR_LEN); |
3132 | hdr->opcode = ISCSI_OP_SCSI_TMFUNC_RSP; | 3132 | hdr->opcode = ISCSI_OP_SCSI_TMFUNC_RSP; |
3133 | hdr->flags = ISCSI_FLAG_CMD_FINAL; | ||
3133 | hdr->response = iscsit_convert_tcm_tmr_rsp(se_tmr); | 3134 | hdr->response = iscsit_convert_tcm_tmr_rsp(se_tmr); |
3134 | hdr->itt = cpu_to_be32(cmd->init_task_tag); | 3135 | hdr->itt = cpu_to_be32(cmd->init_task_tag); |
3135 | cmd->stat_sn = conn->stat_sn++; | 3136 | cmd->stat_sn = conn->stat_sn++; |