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:
@@ -230,7 +230,7 @@ void smbios_prepare_measurement(const struct smbios3_entry *entry,
|
||||
void *table_end;
|
||||
struct smbios_header *header;
|
||||
|
||||
table_end = (void *)((u8 *)smbios_copy + entry->max_struct_size);
|
||||
table_end = (void *)((u8 *)smbios_copy + entry->table_maximum_size);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(smbios_filter_tables); i++) {
|
||||
header = smbios_copy;
|
||||
|
Reference in New Issue
Block a user