Author: mav
Date: Fri Sep 19 11:15:30 2014
New Revision: 271869
URL: http://svnweb.freebsd.org/changeset/base/271869

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

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

Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c      Fri Sep 19 11:02:44 2014        (r271868)
+++ head/sys/cam/ctl/ctl.c      Fri Sep 19 11:15:30 2014        (r271869)
@@ -7074,7 +7074,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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to