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

Alexander Motin mav at FreeBSD.org
Mon Oct 6 13:22:54 UTC 2014


Author: mav
Date: Mon Oct  6 13:22:53 2014
New Revision: 272634
URL: https://svnweb.freebsd.org/changeset/base/272634

Log:
  MFC r271869:
  Fix inverted expression to report block size in mode page block descriptor.

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:22:05 2014	(r272633)
+++ stable/10/sys/cam/ctl/ctl.c	Mon Oct  6 13:22:53 2014	(r272634)
@@ -7090,7 +7090,7 @@ ctl_mode_sense(struct ctl_scsiio *ctsio)
 	 * descriptor.  Otherwise, just set it to 0.
 	 */
 	if (dbd == 0) {
-		if (control_dev != 0)
+		if (control_dev == 0)
 			scsi_ulto3b(lun->be_lun->blocksize,
 				    block_desc->block_len);
 		else


More information about the svn-src-stable mailing list