mirror of https://github.com/acidanthera/audk.git
Update code not to block application/driver load when event log is full.
Signed-off-by: Dong Guo <guo.dong@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Yao Jiewen <jiewen.yao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14283 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
049bf9a26d
commit
772b601158
|
@ -15,7 +15,7 @@
|
||||||
TcgMeasureGptTable() function will receive untrusted GPT partition table, and parse
|
TcgMeasureGptTable() function will receive untrusted GPT partition table, and parse
|
||||||
partition data carefully.
|
partition data carefully.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -664,6 +664,14 @@ TcgMeasurePeImage (
|
||||||
&EventNumber,
|
&EventNumber,
|
||||||
&EventLogLastEntry
|
&EventLogLastEntry
|
||||||
);
|
);
|
||||||
|
if (Status == EFI_OUT_OF_RESOURCES) {
|
||||||
|
//
|
||||||
|
// Out of resource here means the image is hashed and its result is extended to PCR.
|
||||||
|
// But the event log cann't be saved since log area is full.
|
||||||
|
// Just return EFI_SUCCESS in order not to block the image load.
|
||||||
|
//
|
||||||
|
Status = EFI_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
Finish:
|
Finish:
|
||||||
FreePool (TcgEvent);
|
FreePool (TcgEvent);
|
||||||
|
|
Loading…
Reference in New Issue