arm64: efi: deal with NULL return value of early_memremap()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 23 Nov 2015 07:43:23 +0000 (08:43 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 26 Nov 2015 18:15:49 +0000 (18:15 +0000)
commit81d945772afccc77660374aa6e512184b9107580
tree40dbe8d48f3a650871db0753c075d2f206fa7d13
parent1944bf8e78b7178f8ebfeefaced738ce1d111a4c
arm64: efi: deal with NULL return value of early_memremap()

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@linaro.org>
Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/efi.c