[Description]

fix the wrote data corrupt bug about iscsi
[Impaction]
modify the IScsiGenerateDataOutPduSequence() function in MdeModulePkg.
[Reference Info]
when writing some data from local disk into remote iscsi disk, the data may be corrupt.The root cause is caused by the data out PDU's offset is not created correctly.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4843 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
eric_tian 2008-03-13 08:35:18 +00:00
parent c2192d9324
commit e92d66f280
1 changed files with 1 additions and 1 deletions

View File

@ -2321,7 +2321,6 @@ Returns:
// Determine the length of data this Data Out PDU can carry.
//
DataLen = MIN (XferContext->DesiredLength, Conn->MaxRecvDataSegmentLength);
Data += DataLen;
//
// Create a Data Out PDU.
@ -2342,6 +2341,7 @@ Returns:
XferContext->Offset += DataLen;
XferContext->DesiredLength -= DataLen;
DataSN++;
Data += DataLen;
}
//
// Set the F bit for the last data out PDU in this sequence.