[PATCH 1/2] arm64/efi: deal with NULL return value of early_memremap()

Matt Fleming matt at codeblueprint.co.uk
Thu Nov 26 02:29:54 PST 2015

On Mon, 23 Nov, at 08:43:23AM, Ard Biesheuvel wrote:
> Add NULL return value checks to two invocations of early_memremap()
> in the UEFI init code. For the UEFI configuration tables, we just
> warn since we have a better chance of being able to report the issue
> in a way that can actually be noticed by a human operator if we don't
> abort right away. For the UEFI memory map, however, all we can do is
> panic() since we cannot proceed without a description of memory.
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> ---
>  arch/arm64/kernel/efi.c | 14 +++++++++++++-
>  1 file changed, 13 insertions(+), 1 deletion(-)

Reviewed-by: Matt Fleming <matt at codeblueprint.co.uk>

More information about the linux-arm-kernel mailing list