Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
// EndCount = Value counter counts to before it needs to be reset\r
//\r
Status = EfiGetSystemConfigurationTable (&gPerformanceProtocolGuid, (VOID **) &PerformanceProperty);\r
- if (EFI_ERROR (Status)) {\r
+ if (EFI_ERROR (Status) || (PerformanceProperty == NULL)) {\r
PrintToken (STRING_TOKEN (STR_PERF_PROPERTY_NOT_FOUND));\r
goto Done;\r
}\r