summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/common/opregion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/opregion.c b/src/soc/intel/common/opregion.c
index fa4d604a42..44c27fb8fa 100644
--- a/src/soc/intel/common/opregion.c
+++ b/src/soc/intel/common/opregion.c
@@ -40,7 +40,7 @@ int init_igd_opregion(igd_opregion_t *opregion)
memset(opregion, 0, sizeof(igd_opregion_t));
memcpy(&opregion->header.signature, IGD_OPREGION_SIGNATURE,
- sizeof(IGD_OPREGION_SIGNATURE));
+ sizeof(opregion->header.signature));
memcpy(opregion->header.vbios_version, vbt->coreblock_biosbuild,
ARRAY_SIZE(vbt->coreblock_biosbuild));
memcpy(opregion->vbt.gvd1, vbt, MIN(vbt->hdr_vbt_size,