summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-10-06 13:22:53 +0000
committermav <mav@FreeBSD.org>2014-10-06 13:22:53 +0000
commitd2190500908ca7acedea6a1e3bd7b1daa5080b3f (patch)
tree569a0fc461566ac45d3d7c9b66018d6c53af101a
parentb913091bf13ea00d761f0764571556d6eb348f57 (diff)
downloadFreeBSD-src-d2190500908ca7acedea6a1e3bd7b1daa5080b3f.zip
FreeBSD-src-d2190500908ca7acedea6a1e3bd7b1daa5080b3f.tar.gz
MFC r271869:
Fix inverted expression to report block size in mode page block descriptor.
-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 e5a3f60..093deb6 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -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
OpenPOWER on IntegriCloud