svn commit: r272644 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Mon Oct 6 13:31:45 UTC 2014


Author: mav
Date: Mon Oct  6 13:31:44 2014
New Revision: 272644
URL: https://svnweb.freebsd.org/changeset/base/272644

Log:
  MFC r272224: Fix page length reported for Block Limits VPD page.

Modified:
  stable/10/sys/cam/ctl/ctl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl.c	Mon Oct  6 13:30:52 2014	(r272643)
+++ stable/10/sys/cam/ctl/ctl.c	Mon Oct  6 13:31:44 2014	(r272644)
@@ -10287,7 +10287,7 @@ ctl_inquiry_evpd_block_limits(struct ctl
 		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) {


More information about the svn-src-stable-10 mailing list