]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c
MdeModulePkg/PerfLib: Add NULL pointer check for "Token"
authorDandan Bi <dandan.bi@intel.com>
Fri, 9 Feb 2018 05:21:08 +0000 (13:21 +0800)
committerStar Zeng <star.zeng@intel.com>
Sun, 11 Feb 2018 01:56:01 +0000 (09:56 +0800)
commitc9faac275bd80f34b00017ca92ce73beb0c0038f
tree02e718c70f0a87c67e6a5a70b6eb573bd3da7c36
parenta35918caae4d0b9bb51d0d4765117d7ca9a4d641
MdeModulePkg/PerfLib: Add NULL pointer check for "Token"

"Token" is passed through the perf entry, it's may be NULL.
So we need to add NULL pointer check before reference it.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.c
MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.c
MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.c