]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
smbios: type2: contained object handles
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 25 Jan 2024 15:54:33 +0000 (16:54 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 26 Jan 2024 13:15:08 +0000 (14:15 +0100)
The type 2 structure must include information about the contained objects.
It is fine to set the number of contained object handles to 0.

Add the missing field.

Fixes: 721e992a8af5 ("x86: Add SMBIOS table support")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/smbios.h

index b507b9d9d723bed32391003346a7826847b264da..98bb9e52cdfe1851a6f11a31124518611387e791 100644 (file)
@@ -139,6 +139,7 @@ struct __packed smbios_type2 {
        u8 chassis_location;
        u16 chassis_handle;
        u8 board_type;
+       u8 number_contained_objects;
        char eos[SMBIOS_STRUCT_EOS_BYTES];
 };