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:
parent
f9335e19a9
commit
b0e390f1d3
|
@ -500,7 +500,7 @@ LoadComponentWithCallback (
|
||||||
// before authentication for security concern.
|
// before authentication for security concern.
|
||||||
IsInFlash = IS_FLASH_ADDRESS (CompData);
|
IsInFlash = IS_FLASH_ADDRESS (CompData);
|
||||||
AllocLen = ScrLen + TEMP_BUF_ALIGN * 2;
|
AllocLen = ScrLen + TEMP_BUF_ALIGN * 2;
|
||||||
if (!IsInFlash) {
|
if (IsInFlash) {
|
||||||
AllocLen += SignedDataLen;
|
AllocLen += SignedDataLen;
|
||||||
}
|
}
|
||||||
AllocBuf = AllocateTemporaryMemory (AllocLen);
|
AllocBuf = AllocateTemporaryMemory (AllocLen);
|
||||||
|
|
Loading…
Reference in New Issue