X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FXhciPei%2FXhciSched.c;h=aedc2e8dc04b78e61c47df4a65fae3731e5be702;hp=3ae151122240001d5b7170e788ae1d8c686dfee8;hb=60050b31bc13cf76685bc25654d5a2d95a9a273f;hpb=d987459f8e0b78831c95188b5b0d712ed6a54c88 diff --git a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c index 3ae1511222..aedc2e8dc0 100644 --- a/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c +++ b/MdeModulePkg/Bus/Pci/XhciPei/XhciSched.c @@ -2618,6 +2618,7 @@ XhcPeiInitSched ( ASSERT (ScratchEntry != NULL); Xhc->ScratchEntry = ScratchEntry; + ScratchPhy = 0; Status = UsbHcAllocateAlignedPages ( EFI_SIZE_TO_PAGES (MaxScratchpadBufs * sizeof (UINT64)), Xhc->PageSize, @@ -2633,6 +2634,7 @@ XhcPeiInitSched ( // Allocate each scratch buffer // for (Index = 0; Index < MaxScratchpadBufs; Index++) { + ScratchEntryPhy = 0; Status = UsbHcAllocateAlignedPages ( EFI_SIZE_TO_PAGES (Xhc->PageSize), Xhc->PageSize,