iscsi-target: Reject unsupported multi PDU text command sequence
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Nov 2013 22:33:24 +0000 (14:33 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 13 Nov 2013 22:33:24 +0000 (14:33 -0800)
commit122f8afcfb3fa77d05e934182242933ac60746cb
tree23e7d142f4215a04a14ee1a85e97fef99c7622f1
parent04d9cd1224e5bc9d6146bab2866cdc81deb9b509
iscsi-target: Reject unsupported multi PDU text command sequence

This patch adds a check to reject text commands with F_BIT=0 ||
C_BIT=1, as multi PDU text command sequences are currently
unsupported.

This avoids the case where a text command received with F_BIT=0,
was generating a text response with F_BIT=1 which is a protocol
error according to RFC-3720 Section 10.11.1.

Reported-by: Arshad Hussain <arshad.hussain@calsoftinc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c