diff options
author | Feng Tian <feng.tian@intel.com> | 2015-04-27 05:18:42 +0000 |
---|---|---|
committer | erictian <erictian@Edk2> | 2015-04-27 05:18:42 +0000 |
commit | b753b3cc6e0c01823f4545ecd3a7c5aacbd4ffbe (patch) | |
tree | d6dd1dd0b908751ac1a26d96d9cb5179f208b73b /SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3 | |
parent | 654a012ba5e99c7439df392ed44b3b4e02aaca2f (diff) | |
download | edk2-platforms-b753b3cc6e0c01823f4545ecd3a7c5aacbd4ffbe.tar.xz |
SourceLevelDebugPkg/DebugCommunicationLibUsb3: Fix the completed transfer length
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17202 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3')
-rw-r--r-- | SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c index 773a7bd9c5..dbff493624 100644 --- a/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c +++ b/SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3/DebugCommunicationLibUsb3Transfer.c @@ -277,7 +277,7 @@ XhcCheckUrbResult ( //
// The length of data which were transferred.
//
- CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Length);
+ CheckedUrb->Completed += (((TRANSFER_TRB_NORMAL*)TRBPtr)->Length - EvtTrb->Length);
} else {
CheckedUrb->Result |= EFI_USB_ERR_TIMEOUT;
}
|