diff options
author | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-13 08:35:18 +0000 |
---|---|---|
committer | eric_tian <eric_tian@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-03-13 08:35:18 +0000 |
commit | e92d66f2809305801f8a4c477baca5b4f3dd01d3 (patch) | |
tree | 3b39c63ff0ef667e022e3098d9559d9faddfcfbd /MdeModulePkg/Universal/Network | |
parent | c2192d9324904951aa71af8b3b0e5016eb877884 (diff) | |
download | edk2-platforms-e92d66f2809305801f8a4c477baca5b4f3dd01d3.tar.xz |
[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
Diffstat (limited to 'MdeModulePkg/Universal/Network')
-rw-r--r-- | MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c index 8607558397..3298b95769 100644 --- a/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c +++ b/MdeModulePkg/Universal/Network/IScsiDxe/IScsiProto.c @@ -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.
|