Cc: Star Zeng <star.z...@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a...@intel.com>
---
 PerformancePkg/Dp_App/Dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c
index e2cb862..4cdc39e 100644
--- a/PerformancePkg/Dp_App/Dp.c
+++ b/PerformancePkg/Dp_App/Dp.c
@@ -400,7 +400,7 @@ InitializeDp (
       //      EndCount = Value counter counts to before it needs to be reset
       //
       Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, 
(VOID **) &PerformanceProperty);
-      if (EFI_ERROR (Status)) {
+      if (EFI_ERROR (Status) || (PerformanceProperty == NULL)) {
         PrintToken (STRING_TOKEN (STR_PERF_PROPERTY_NOT_FOUND));
         goto Done;
       }
-- 
1.9.5.msysgit.0

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to