drivers/intel/gma/opregion.c: Fix uninitialised variable use
Change-Id: I87cff1e0360e23e37201381ed8a6920ee36b2747 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61892 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
ca9d4feca6
commit
c2434f4b87
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue