From 810a5a5c08b7a80e0e2b00be45f57d653a1c7f42 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Fri, 19 Sep 2014 11:15:30 +0000 Subject: [PATCH] Fix inverted expression to report block size in mode page block descriptor. --- sys/cam/ctl/ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 868bff76e7dd..9a1937494ece 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -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