mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
Set bufflen for not expected transfer len case to max to allow, e.g., to get immediate iSCSI data. Otherwise, the iSCSI target will get a too low buffer error and have to close connection.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1548 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -632,6 +632,9 @@ static int scst_parse_cmd(struct scst_cmd *cmd)
|
||||
cmd->bufflen);
|
||||
PRINT_BUFF_FLAG(TRACE_MINOR, "Suspicious CDB",
|
||||
cmd->cdb, cmd->cdb_len);
|
||||
/* Needed, e.g., to get immediate iSCSI data */
|
||||
cmd->bufflen = max(cmd->bufflen,
|
||||
cmd->expected_transfer_len);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user