summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-09-01 08:55:49 +0000
committervanjeff <vanjeff@Edk2>2015-09-01 08:55:49 +0000
commitf1c97bb3f405f43f74866c0a55a15a3f184f83b6 (patch)
tree8088007ac1003f2be910b8c5852032159a96687d /UefiCpuPkg/CpuMpPei
parent44d2ec14d88c28af9fa6701cbc4544659e4bddbc (diff)
downloadedk2-f1c97bb3f405f43f74866c0a55a15a3f184f83b6.tar.gz
edk2-f1c97bb3f405f43f74866c0a55a15a3f184f83b6.tar.bz2
edk2-f1c97bb3f405f43f74866c0a55a15a3f184f83b6.zip
UefiCpuPkg/CpuMpPei: Check Function pointer in PeiStartupAllAPs ()
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/trunk/edk2@18373 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei')
-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
//