From 39b6c43d4588d0c3288257f812ec6b3485215d90 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 8 Mar 2012 08:24:12 +0000 Subject: [PATCH] scst: Fix value of FMTDATA bitmask git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4159 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }