mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
smbios: correctly name Structure Table Maximum Size field
In the SMBIOS 3 entry point the Structure Table Maximum Size field was incorrectly named max_struct_size. A Maximum Structure Size field only exists in the SMBIOS 2.1 entry point and has a different meaning. Call the Structure Table Length field table_maximum_size. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
@@ -142,7 +142,7 @@ static int do_smbios(struct cmd_tbl *cmdtp, int flag, int argc,
|
||||
entry3->major_ver, entry3->minor_ver, entry3->doc_rev);
|
||||
table = (void *)(uintptr_t)entry3->struct_table_address;
|
||||
size = entry3->length;
|
||||
table_maximum_size = entry3->max_struct_size;
|
||||
table_maximum_size = entry3->table_maximum_size;
|
||||
} else if (!memcmp(entry, smbios_sig, sizeof(smbios_sig) - 1)) {
|
||||
struct smbios_entry *entry2 = entry;
|
||||
|
||||
|
Reference in New Issue
Block a user