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>
This commit is contained in:
Ashish Singhal
2019-10-16 01:20:46 +08:00
committed by Matt DeVillier
parent 964f80253a
commit 6bd9d60b41

View File

@ -662,7 +662,7 @@ UsbHcAllocateAlignedPages (
PciIo, PciIo,
AllocateAnyPages, AllocateAnyPages,
EfiBootServicesData, EfiBootServicesData,
Pages, RealPages,
&Memory, &Memory,
0 0
); );