summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2016-07-22 03:34:15 +0000
committersbruno <sbruno@FreeBSD.org>2016-07-22 03:34:15 +0000
commita310d21a88737367640a8e5edaadb070859f9829 (patch)
treeca874d933d476acb0b5b8708fe43ac1134d208f9
parent7a0632638b915e94b08bea034bdfd2e61b035263 (diff)
downloadFreeBSD-src-a310d21a88737367640a8e5edaadb070859f9829.zip
FreeBSD-src-a310d21a88737367640a8e5edaadb070859f9829.tar.gz
MFC r302281
Correct PERSISTENT RESERVE OUT command and populate scsi_cmd->length. PR: 202625
-rw-r--r--sys/cam/scsi/scsi_all.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 12be402..6c04fae 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -8539,6 +8539,7 @@ scsi_persistent_reserve_out(struct ccb_scsiio *csio, uint32_t retries,
scsi_cmd->opcode = PERSISTENT_RES_OUT;
scsi_cmd->action = service_action;
scsi_cmd->scope_type = scope | res_type;
+ scsi_ulto4b(dxfer_len, scsi_cmd->length);
cam_fill_csio(csio,
retries,
OpenPOWER on IntegriCloud