summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Pci/XhciDxe
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2014-07-07 05:58:25 +0000
committerlzeng14 <lzeng14@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-07 05:58:25 +0000
commit414f5bd1d74ea60b39b8cd3e7739196d78091cb3 (patch)
treecb3a3f162260ba1b120d6ca441abbeb1d30fb7b1 /MdeModulePkg/Bus/Pci/XhciDxe
parent737adca337df5376980030c88324259aa265b3ab (diff)
downloadedk2-platforms-414f5bd1d74ea60b39b8cd3e7739196d78091cb3.tar.xz
MdeModulePkg XhciDxe: Initialize ScratchPhy and ScratchEntryPhy in XhcInitSched().
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15634 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Bus/Pci/XhciDxe')
-rw-r--r--MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
index e5e1b3d802..370d9b81b2 100644
--- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
+++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c
@@ -525,6 +525,7 @@ XhcInitSched (
ASSERT (ScratchEntry != NULL);
Xhc->ScratchEntry = ScratchEntry;
+ ScratchPhy = 0;
Status = UsbHcAllocateAlignedPages (
Xhc->PciIo,
EFI_SIZE_TO_PAGES (MaxScratchpadBufs * sizeof (UINT64)),
@@ -542,6 +543,7 @@ XhcInitSched (
// Allocate each scratch buffer
//
for (Index = 0; Index < MaxScratchpadBufs; Index++) {
+ ScratchEntryPhy = 0;
Status = UsbHcAllocateAlignedPages (
Xhc->PciIo,
EFI_SIZE_TO_PAGES (Xhc->PageSize),