smbios: error handling for invalid addresses
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 15 May 2021 16:07:47 +0000 (18:07 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 24 Jul 2021 08:49:51 +0000 (10:49 +0200)
commitc193d9bd284565df4ddcdd1e9190d2ce718e9eb7
treeaad6c530d29fcb91f35e632e8237c43fb4f73b16
parent11275e4f72d6d2170db444df95e8f6b6ab627e8e
smbios: error handling for invalid addresses

SMBIOS tables only support 32bit addresses. If we don't have memory here
handle the error gracefully:

* on x86_64 fail to start U-Boot
* during UEFI booting ignore the missing table

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/tables.c
include/smbios.h
lib/efi_loader/efi_smbios.c
lib/smbios.c