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:
committed by
Matt DeVillier
parent
964f80253a
commit
6bd9d60b41
@ -662,7 +662,7 @@ UsbHcAllocateAlignedPages (
|
|||||||
PciIo,
|
PciIo,
|
||||||
AllocateAnyPages,
|
AllocateAnyPages,
|
||||||
EfiBootServicesData,
|
EfiBootServicesData,
|
||||||
Pages,
|
RealPages,
|
||||||
&Memory,
|
&Memory,
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user