summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-09-02 03:15:44 +0000
committerhwu1225 <hwu1225@Edk2>2015-09-02 03:15:44 +0000
commit5b70667c58a29ac4d7fa526fd8b0c180f35a8202 (patch)
treeb34dcd506289b6bd63ad1875b500f4cad02883f7 /UefiCpuPkg
parent091269232629660ef5b1997d66658c94b58b009d (diff)
downloadedk2-platforms-5b70667c58a29ac4d7fa526fd8b0c180f35a8202.tar.xz
UefiCpuPkg/CpuMpPei: Check Function pointer in PeiStartupAllAPs ()
(Sync patch r18373 from main trunk.) Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@18381 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/CpuMpPei/PeiMpServices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/PeiMpServices.c b/UefiCpuPkg/CpuMpPei/PeiMpServices.c
index 625c24a6f4..4215f9e51b 100644
--- a/UefiCpuPkg/CpuMpPei/PeiMpServices.c
+++ b/UefiCpuPkg/CpuMpPei/PeiMpServices.c
@@ -441,6 +441,10 @@ PeiStartupAllAPs (
return EFI_NOT_FOUND;
}
+ if (Procedure == NULL) {
+ return EFI_INVALID_PARAMETER;
+ }
+
//
// Check whether caller processor is BSP
//