Skip to content

Commit

Permalink
MdeModulePkg/XhciDxe: Fix Aligned Page Allocation
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Hao A Wu <[email protected]>
  • Loading branch information
ashishsingha authored and hwu25 committed Oct 21, 2019
1 parent 0f28c51 commit 3b889f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MdeModulePkg/Bus/Pci/XhciDxe/UsbHcMem.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ UsbHcAllocateAlignedPages (
PciIo,
AllocateAnyPages,
EfiBootServicesData,
Pages,
RealPages,
&Memory,
0
);
Expand Down

0 comments on commit 3b889f6

Please sign in to comment.