Fix ContainerLib flash bug

There is a small bug in the ContainerLib
where the check for whether the data is
stored in the flash needs to be adjusted.

Signed-off-by: James Gutbub <james.gutbub@intel.com>
This commit is contained in:
James Gutbub 2019-08-15 13:48:37 -07:00 committed by Maurice Ma
parent f9335e19a9
commit b0e390f1d3
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ LoadComponentWithCallback (
// before authentication for security concern.
IsInFlash = IS_FLASH_ADDRESS (CompData);
AllocLen = ScrLen + TEMP_BUF_ALIGN * 2;
if (!IsInFlash) {
if (IsInFlash) {
AllocLen += SignedDataLen;
}
AllocBuf = AllocateTemporaryMemory (AllocLen);