summaryrefslogtreecommitdiff
path: root/lib/smbios.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-06-06 10:59:55 -0400
committerTom Rini <trini@konsulko.com>2020-06-06 10:59:55 -0400
commit62005e20832135bda2d7539a29f7d2e9026f590a (patch)
tree3b6fefeea5c1c0a8bdbc36218ae55daa6353b93e /lib/smbios.c
parent88bd5b1793600b0f5f25c3d236b4d049fb986140 (diff)
parent325567d3c59fba32bdbf33a8ec981a8ccb096780 (diff)
Merge tag 'efi-2020-07-rc4-2' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
Pull request for UEFI sub-system for efi-2020-07-rc4 (2) The following problems are resolved: * When booting via UEFI an SMBIOS table is presented to the operating system. If U-Boot tries to add an empty string, this results in corrupted SMBIOS information. We will now use "Unknown" as property value. * The EFI_RNG_PROTOCOL uses the DM_RNG drivers. For the virtio RNG driver the missing DM_RNG Kconfig dependency is added. * Missing function descriptions for the EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL are added.
Diffstat (limited to 'lib/smbios.c')
-rw-r--r--lib/smbios.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index 7b74971f687..11790443e1a 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -31,6 +31,8 @@ static int smbios_add_string(char *start, const char *str)
{
int i = 1;
char *p = start;
+ if (!*str)
+ str = "Unknown";
for (;;) {
if (!*p) {