summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-10-07 10:36:06 +0000
committermav <mav@FreeBSD.org>2014-10-07 10:36:06 +0000
commit2dd522bc557398a897ed8be949e0f7d9055ca0f1 (patch)
tree54a32c5ed576db484fd7d2b4fb3a9714a076343d
parent704aaa7e1289b9b5918529ac94758176ead4a8b7 (diff)
downloadFreeBSD-src-2dd522bc557398a897ed8be949e0f7d9055ca0f1.zip
FreeBSD-src-2dd522bc557398a897ed8be949e0f7d9055ca0f1.tar.gz
MFC r272224: Fix page length reported for Block Limits VPD page.
Approved by: re (marius)
-rw-r--r--sys/cam/ctl/ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 28aed8d..e4ce29b 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -10173,7 +10173,7 @@ ctl_inquiry_evpd_block_limits(struct ctl_scsiio *ctsio, int alloc_len)
bl_ptr->device = (SID_QUAL_LU_OFFLINE << 5) | T_DIRECT;
bl_ptr->page_code = SVPD_BLOCK_LIMITS;
- scsi_ulto2b(sizeof(*bl_ptr), bl_ptr->page_length);
+ scsi_ulto2b(sizeof(*bl_ptr) - 4, bl_ptr->page_length);
bl_ptr->max_cmp_write_len = 0xff;
scsi_ulto4b(0xffffffff, bl_ptr->max_txfer_len);
if (lun != NULL) {
OpenPOWER on IntegriCloud