summaryrefslogtreecommitdiff
path: root/lib/smbios-parser.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-01-31 23:49:34 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-02-02 19:57:45 +0100
commit406c410ef747d66e16f2f5494cbf88ba1307224f (patch)
treed1d299e98db982d1379cb1d2a009e1c437dbb454 /lib/smbios-parser.c
parente494258deddcae4a6805abfbb643b2fdc8ac3736 (diff)
downloadu-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.tar.gz
u-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.tar.bz2
u-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.zip
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>
Diffstat (limited to 'lib/smbios-parser.c')
-rw-r--r--lib/smbios-parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smbios-parser.c b/lib/smbios-parser.c
index 0d1ac781b3..9a62b3c760 100644
--- a/lib/smbios-parser.c
+++ b/lib/smbios-parser.c
@@ -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;