target: Fix return sense reason in target_scsi3_emulate_pr_out
authorTang Wenji <tang.wenji@zte.com.cn>
Sat, 8 Jul 2017 03:28:25 +0000 (11:28 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 10 Jul 2017 03:59:17 +0000 (20:59 -0700)
commit7ee0031786dc3762f61d0ec9171bb75d56a5ac76
tree858f476904d4781ed8bb49d90e6f55ce0def11e9
parent388fe6996bf658146e70c0df986981eae4be0385
target: Fix return sense reason in target_scsi3_emulate_pr_out

The sense reason should be TCM_PARAMETER_LIST_LENGTH_ERROR when
parmeter length error.

Also the cdb[1] & 0x1f has been assigned to local variable sa,
so use sa instead of it.

Signed-off-by: Tang Wenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c