[PATCH 1/1] smbios: empty strings in smbios_add_string()

Simon Glass sjg at chromium.org
Fri Jun 5 05:36:53 CEST 2020


On Mon, 1 Jun 2020 at 07:44, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> smbios_add_string() cannot deal with empty strings. This leads to incorrect
> property values and invalid tables. E.g. for the pine64-lts_defconfig
> CONFIG_SMBIOS_MANUFACTURER="". Linux command dmidecode shows:
>
> Table 1:
>     Manufacturer: sunxi
>     Product Name: sunxi
>
> Table 3:
>     Invalid entry length (2). DMI table is broken! Stop.
>
> Replace empty strings by "Unknown".
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  lib/smbios.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list