]> git.dujemihanovic.xyz Git - u-boot.git/commit
smbios: Correct error handling when writing tables
authorSimon Glass <sjg@chromium.org>
Sun, 23 Jun 2024 20:30:33 +0000 (14:30 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 4 Jul 2024 15:25:21 +0000 (09:25 -0600)
commit4a8a54c3f4202482ec4f24a117afc38cf2c0c051
treeb69fd2a2ee983403d9ea52b928632dbac3eaff03
parentf840a5b34ca181c4ecd8ee5c60a0a1bf5f8e559c
smbios: Correct error handling when writing tables

Since write_smbios_table() returns an address, we cannot use it to
return and error number. Also, failing on sysinfo_detect() breaks
existing boards, e.g. chromebook_link

Correct this by logging and swallowing the error.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: a5a57562856 ("lib: smbios: Detect system properties via...")
lib/smbios.c