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 Hao A Wu
parent 0f28c513d3
commit 3b889f6fab
1 changed files with 1 additions and 1 deletions

View File

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