From c2434f4b87047689eb6bba5476a9a65b03fc7dbe Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Sat, 12 Feb 2022 17:29:59 +0100 Subject: [PATCH] drivers/intel/gma/opregion.c: Fix uninitialised variable use Change-Id: I87cff1e0360e23e37201381ed8a6920ee36b2747 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/61892 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/drivers/intel/gma/opregion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/intel/gma/opregion.c b/src/drivers/intel/gma/opregion.c index ff77f653b0..dc99fd49e4 100644 --- a/src/drivers/intel/gma/opregion.c +++ b/src/drivers/intel/gma/opregion.c @@ -332,8 +332,8 @@ enum cb_err intel_gma_init_igd_opregion(void) return CB_ERR; } - if (is_ext_vbt_required(opregion, vbt)) - opregion_size += vbt->hdr_vbt_size; + /* Add the space for the extended VBT header even if it's not used */ + opregion_size += vbt->hdr_vbt_size; opregion = cbmem_add(CBMEM_ID_IGD_OPREGION, opregion_size); if (!opregion) {