From 3f7606d5a32b776440c9ed0f27393a3b72cc2bdb Mon Sep 17 00:00:00 2001 From: Sean Bruno Date: Wed, 29 Jun 2016 16:41:37 +0000 Subject: [PATCH] Correct PERSISTENT RESERVE OUT command and populate scsi_cmd->length. PR: 202625 Submitted by: niakrisn@gmail.com Reviewed by: scottl kenm Approved by: re (gjb) MFC after: 2 weeks --- sys/cam/scsi/scsi_all.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c index 722b44faed0..fe92500d98d 100644 --- a/sys/cam/scsi/scsi_all.c +++ b/sys/cam/scsi/scsi_all.c @@ -8788,6 +8788,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,