summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/xeon_sp/ras/hest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/ras/hest.c b/src/soc/intel/xeon_sp/ras/hest.c
index 9eb54d9559..2da720a744 100644
--- a/src/soc/intel/xeon_sp/ras/hest.c
+++ b/src/soc/intel/xeon_sp/ras/hest.c
@@ -65,7 +65,7 @@ static unsigned long acpi_fill_hest(acpi_hest_t *hest)
next = hest + 1;
next += acpi_hest_add_ghes(next);
hest->error_source_count += 1;
- header->length += next - current;
+ header->length = next - current;
return header->length;
}