From 406c410ef747d66e16f2f5494cbf88ba1307224f Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 31 Jan 2024 23:49:34 +0100 Subject: 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 --- lib/smbios-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/smbios-parser.c') diff --git a/lib/smbios-parser.c b/lib/smbios-parser.c index 0d1ac781b38..9a62b3c760d 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; -- cgit v1.2.3