]> git.ipfire.org Git - thirdparty/u-boot.git/commit
smbios: Do not fall back on devicetree without valid mapping 967/head
authorMark Kettenis <kettenis@openbsd.org>
Sat, 9 May 2026 20:31:36 +0000 (22:31 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 15 May 2026 14:18:11 +0000 (08:18 -0600)
commit215496fec59b3fa09256b4fb62f92af46e2ec7f9
treeae9689d8d61a671dec1cb4e5fe3c3b09aff40232
parentf3af40cff99528627c311aed939183e420c30885
smbios: Do not fall back on devicetree without valid mapping

The smbios_get_val_si() function may get called for a sysinfo
property for which there is no mapping to a devicetree property.
Avoid a NULL pointer dereference in this case by skipping the
read of the mapped property from the device tree.

Fixes: 83b28b55d74f ("smbios: add support for dynamic generation of Type 9 system slot tables")
Signed-off-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Raymond Mao <raymondmaoca@gmail.com>
lib/smbios.c