The only valid memory types for DmaAlignedBuffer should be
EfiBootServicesData and EfiRuntimeServicesData. However due to the typo,
there is no way to allocate runtime pages, and INVALID_PARAMETER is
always returned. Fix the typo.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov@broadcom.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
//\r
if (MemoryType == EfiBootServicesData) {\r
*HostAddress = AllocateAlignedPages (Pages, Alignment);\r
- } else if (MemoryType != EfiRuntimeServicesData) {\r
+ } else if (MemoryType == EfiRuntimeServicesData) {\r
*HostAddress = AllocateAlignedRuntimePages (Pages, Alignment);\r
} else {\r
return EFI_INVALID_PARAMETER;\r