iscsi-target: Add missing F_BIT for iscsi_tm_rsp
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 28 Nov 2011 06:25:14 +0000 (22:25 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:58:30 +0000 (12:58 -0800)
commit32d7d1813d394c2e74b444cc4226ece55a26739a
tree51aaf7159e39fce106f2551aa6119a4a8e27c62e
parent2b16ab8d498d84a33a7f827184beb3c9fbc7da9f
iscsi-target: Add missing F_BIT for iscsi_tm_rsp

commit 7ae0b1038f9f7d4c91e9afd4dbbc98210bf1a241 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/target/iscsi/iscsi_target.c