summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/smbios.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/smbios.c b/lib/smbios.c
index 40c921984c..326eb00230 100644
--- a/lib/smbios.c
+++ b/lib/smbios.c
@@ -278,6 +278,7 @@ ulong write_smbios_table(ulong addr)
/* populate minimum required tables */
for (i = 0; i < ARRAY_SIZE(smbios_write_funcs); i++) {
int tmp = smbios_write_funcs[i]((ulong *)&addr, handle++);
+
max_struct_size = max(max_struct_size, tmp);
len += tmp;
}