]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
MdeModulePkg/PerformanceLib: Add NULL pointer check
authorDandan Bi <dandan.bi@intel.com>
Wed, 27 Jun 2018 04:37:19 +0000 (12:37 +0800)
committerEric Dong <eric.dong@intel.com>
Thu, 28 Jun 2018 11:46:07 +0000 (19:46 +0800)
commit981b7edc0e2f984c62608e9c5c5702ad106fa764
tree8ffff6e07cd10ce7666dec9f0dfed0b1faa63e3f
parentecd0f8b12f90a603d61c8263134599f7911bbc07
MdeModulePkg/PerformanceLib: Add NULL pointer check

1. Add NULL pointer check for the "Guid" parameter
   when handle FPDT_DUAL_GUID_STRING_EVENT_TYPE.
2. Make the code logic in DxeCore/SmmCore/PeiPerformanceLib
   aligned when handle FPDT_DUAL_GUID_STRING_EVENT_TYPE.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c