Hi, Ray
In below code the FileBuffer should be freed according to its allocation method
(page or pool). Other part is good with me.
> + Status = LoadFile->LoadFile (LoadFile, FilePath, TRUE, &BufferSize,
> FileBuffer);
> + if (EFI_ERROR (Status)) {
> +FreePool (FileBuffer);
> +return
Use reserved memory to hold the buffer for the RAM disk to
follow the ACPI spec requirement.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni
Cc: Siyuan Fu
---
MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 145 +++--
.../Library/UefiBootMana
2 matches
Mail list logo