summaryrefslogtreecommitdiff
path: root/SecurityPkg/Tcg/TcgDxe
diff options
context:
space:
mode:
authorChao Zhang <chao.b.zhang@intel.com>2014-12-10 08:21:05 +0000
committerczhang46 <czhang46@Edk2>2014-12-10 08:21:05 +0000
commit61959fa9baeed976adefa2043390f2ad208d894e (patch)
tree2bcc6b6556ee4889a08cbb8f558377c0cf60abe8 /SecurityPkg/Tcg/TcgDxe
parent213cc1000e6af3c90aefdef2f0f9d5aa99f758d1 (diff)
downloadedk2-platforms-61959fa9baeed976adefa2043390f2ad208d894e.tar.xz
Fix potential NULL pointer dereference issue in TcgDxe & TreeDxe.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Guo Dong <guo.dong@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16494 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Tcg/TcgDxe')
-rw-r--r--SecurityPkg/Tcg/TcgDxe/TcgDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
index bf9c7521aa..282505dbc7 100644
--- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
+++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c
@@ -1021,7 +1021,7 @@ MeasureAllBootVariables (
&BootCount,
(VOID **) &BootOrder
);
- if (Status == EFI_NOT_FOUND) {
+ if (Status == EFI_NOT_FOUND || BootOrder == NULL) {
return EFI_SUCCESS;
}