summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/amd/common/vboot/vboot_bootblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/amd/common/vboot/vboot_bootblock.c b/src/soc/amd/common/vboot/vboot_bootblock.c
index 06ac45ba5c..ae1a7d27a1 100644
--- a/src/soc/amd/common/vboot/vboot_bootblock.c
+++ b/src/soc/amd/common/vboot/vboot_bootblock.c
@@ -12,7 +12,7 @@
static int transfer_buffer_valid(const struct transfer_info_struct *ptr)
{
- if (ptr->magic_val == TRANSFER_MAGIC_VAL)
+ if (ptr->magic_val == TRANSFER_MAGIC_VAL && ptr->struct_bytes == sizeof(*ptr))
return 1;
else
return 0;