scsi: target: Fix protect handling in WRITE SAME(32)
authorDmitry Bogdanov <d.bogdanov@yadro.com>
Fri, 2 Jul 2021 09:16:55 +0000 (12:16 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 01:27:42 +0000 (21:27 -0400)
commit6d8e7e7c932162bccd06872362751b0e1d76f5af
treeed860fa38e521bbcf3052ff7969c84a0d2d3bec0
parente746f3451ec7f91dcc9fd67a631239c715850a34
scsi: target: Fix protect handling in WRITE SAME(32)

WRITE SAME(32) command handling reads WRPROTECT at the wrong offset in 1st
byte instead of 10th byte.

Link: https://lore.kernel.org/r/20210702091655.22818-1-d.bogdanov@yadro.com
Fixes: afd73f1b60fc ("target: Perform PROTECT sanity checks for WRITE_SAME")
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_sbc.c