[PATCH v2 08/10] efi/libstub: Make efi_remap_image() return efi_status_t

Jason Gunthorpe jgg at nvidia.com
Fri Nov 13 07:10:21 PST 2026


On Tue, 10 Nov 2026 13:17:40 +0100, Ard Biesheuvel <ardb+git at google.com> wrote:
> efi_remap_image() uses the EFI Memory Attributes Protocol to remap code
> and data regions with the appropriate permissions. This could fail for a
> variety of regions, all of which are currently ignored.
> 
> So relay the failure status code if any occur when invoking the
> protocol. Locating the protocol itself is allowed to fail, as remapping
> the image is likely unnecessary in the first place if the protocol does
> not exist.
> 
> [...]

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

-- 
Jason



More information about the linux-riscv mailing list