mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
scst_lib: Fix READ POSITION parsing
For code 08h (EXTENDED FORM) minimal response length is 32, see table "READ POSITION data format, extended form". In SSC-[2,3] table "READ POSITION service action codes" requests minimum response lenght 28 bytes, but it is an apparent typo, because the actual data format is 32 bytes long. In SSC-4 it is fixed. Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5740 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6838,7 +6838,7 @@ static int get_cdb_info_read_pos(struct scst_cmd *cmd,
|
||||
cmd->bufflen = 32;
|
||||
break;
|
||||
case 8:
|
||||
cmd->bufflen = max(28, cmd->bufflen);
|
||||
cmd->bufflen = max(32, cmd->bufflen);
|
||||
break;
|
||||
default:
|
||||
PRINT_ERROR("READ POSITION: Invalid service action %x",
|
||||
|
||||
Reference in New Issue
Block a user