diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-01-31 23:49:34 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-02-02 19:57:45 +0100 |
commit | 406c410ef747d66e16f2f5494cbf88ba1307224f (patch) | |
tree | d1d299e98db982d1379cb1d2a009e1c437dbb454 /lib/smbios.c | |
parent | e494258deddcae4a6805abfbb643b2fdc8ac3736 (diff) | |
download | u-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.zip u-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.tar.gz u-boot-406c410ef747d66e16f2f5494cbf88ba1307224f.tar.bz2 |
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.c')
-rw-r--r-- | lib/smbios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smbios.c b/lib/smbios.c index 327f78c..c83af73 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -615,7 +615,7 @@ ulong write_smbios_table(ulong addr) se->minor_ver = SMBIOS_MINOR_VER; se->doc_rev = 0; se->entry_point_rev = 1; - se->max_struct_size = len; + se->table_maximum_size = len; se->struct_table_address = table_addr; se->checksum = table_compute_checksum(se, sizeof(struct smbios3_entry)); unmap_sysmem(se); |