Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2014 20:08:35 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272224 - head/sys/cam/ctl
Message-ID:  <201409272008.s8RK8Z81049713@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sat Sep 27 20:08:34 2014
New Revision: 272224
URL: http://svnweb.freebsd.org/changeset/base/272224

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

Modified:
  head/sys/cam/ctl/ctl.c

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c	Sat Sep 27 19:14:22 2014	(r272223)
+++ head/sys/cam/ctl/ctl.c	Sat Sep 27 20:08:34 2014	(r272224)
@@ -10285,7 +10285,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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409272008.s8RK8Z81049713>