]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/XhciDxe: Fix Aligned Page Allocation
authorAshish Singhal <ashishsingha@nvidia.com>
Tue, 15 Oct 2019 17:20:46 +0000 (01:20 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Mon, 21 Oct 2019 00:59:25 +0000 (08:59 +0800)
While allocating pages aligned at an alignment higher than
4K, allocate memory taking into consideration the padding
required for that alignment. The calls to free pages takes
care of this already.

Signed-off-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c

index fd799884f6f1f92b77293585573416bc45d209f9..aa69c47aad386048e7253755984cb337a11881c2 100644 (file)
@@ -656,7 +656,7 @@ UsbHcAllocateAlignedPages (
                       PciIo,\r
                       AllocateAnyPages,\r
                       EfiBootServicesData,\r
-                      Pages,\r
+                      RealPages,\r
                       &Memory,\r
                       0\r
                       );\r