Resolve a bug where the initial ReadEdidData 'for' loop would loop
commit22687771398d0d6bb9f50dd67f12b7608b33eb0b
authorJordan Justen <jljusten@tianocore.org>
Mon, 24 Nov 2008 00:30:53 +0000 (24 00:30 +0000)
committerJordan Justen <jljusten@tianocore.org>
Mon, 24 Nov 2008 00:30:53 +0000 (24 00:30 +0000)
tree40e9163667285c97b0d214edf20a8ce95a1455f8
parentf6623dbe82269c463e5df46e9610e3a55c94c569
Resolve a bug where the initial ReadEdidData 'for' loop would loop
infinitely, since the Index variable was declared as UINT8, and
'EDID_BLOCK_SIZE * 2' is 256.

In the EFI_SUCCESS return path of CirrusLogic5430VideoModeSetup, check
that 'EdidOverrideDataBlock' has been allocated before attempting to
free this memory.
OptionRomPkg/CirrusLogic5430Dxe/Edid.c