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

This commit is contained in:
Alexander Motin 2014-09-19 11:15:30 +00:00
parent c3a05e5422
commit 810a5a5c08

View File

@ -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