summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Bus
diff options
context:
space:
mode:
authorAshish Singhal <ashishsingha@nvidia.com>2019-10-16 01:20:46 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-10-21 08:59:25 +0800
commit3b889f6faba1786c059dd9306e813707aef497ca (patch)
tree17a4f0fd375eaf7fa8d3dec30f52026b6fd3eb66 /MdeModulePkg/Bus
parent0f28c513d392a807f7b4225964eba6e2b1c453a2 (diff)
downloadedk2-3b889f6faba1786c059dd9306e813707aef497ca.tar.gz
edk2-3b889f6faba1786c059dd9306e813707aef497ca.tar.bz2
edk2-3b889f6faba1786c059dd9306e813707aef497ca.zip
MdeModulePkg/XhciDxe: Fix Aligned Page Allocation
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>
Diffstat (limited to 'MdeModulePkg/Bus')
-rw-r--r--MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c b/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
index fd799884f6..aa69c47aad 100644
--- a/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
+++ b/MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
@@ -656,7 +656,7 @@ UsbHcAllocateAlignedPages (
PciIo,
AllocateAnyPages,
EfiBootServicesData,
- Pages,
+ RealPages,
&Memory,
0
);