diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index e6fc2335d..b27089756 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -5125,7 +5125,7 @@ static int get_bidi_trans_len_2(struct scst_cmd *cmd, uint8_t off) static int get_trans_len_fmt(struct scst_cmd *cmd, uint8_t off) { - if (cmd->cdb[1] & 0x04/*FMTDATA*/) { + if (cmd->cdb[1] & 0x10/*FMTDATA*/) { cmd->data_direction = SCST_DATA_WRITE; cmd->op_flags |= SCST_UNKNOWN_LENGTH; }