mirror of https://github.com/acidanthera/audk.git
[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:
parent
c2192d9324
commit
e92d66f280
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue