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,7 +332,7 @@ enum cb_err intel_gma_init_igd_opregion(void)
|
||||||
return CB_ERR;
|
return CB_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_ext_vbt_required(opregion, vbt))
|
/* Add the space for the extended VBT header even if it's not used */
|
||||||
opregion_size += vbt->hdr_vbt_size;
|
opregion_size += vbt->hdr_vbt_size;
|
||||||
|
|
||||||
opregion = cbmem_add(CBMEM_ID_IGD_OPREGION, opregion_size);
|
opregion = cbmem_add(CBMEM_ID_IGD_OPREGION, opregion_size);
|
||||||
|
|
Loading…
Reference in New Issue