summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-03-30 10:12:39 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2017-05-01 22:20:49 -0700
commit0e2eb7d12eaa8e391bf5615d4271bb87a649caaa (patch)
tree8c46d9fc3db0adfcdbb17f4c6ffc811a59309704 /kernel
parentd65e655706e4827fb061daff399e07806b1223ad (diff)
downloadlinux-stable-0e2eb7d12eaa8e391bf5615d4271bb87a649caaa.tar.gz
linux-stable-0e2eb7d12eaa8e391bf5615d4271bb87a649caaa.tar.bz2
linux-stable-0e2eb7d12eaa8e391bf5615d4271bb87a649caaa.zip
target: Fix VERIFY and WRITE VERIFY command parsing
Use the value of the BYTCHK field to determine the size of the Data-Out buffer. For VERIFY, honor the VRPROTECT, DPO and FUA fields. This patch avoids that LIO complains about a mismatch between the expected transfer length and the SCSI CDB length if the value of the BYTCHK field is 0. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Max Lohrmann <post@wickenrode.com> Cc: <stable@vger.kernel.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions