diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-09-01 08:55:49 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-09-01 08:55:49 +0000 |
commit | f1c97bb3f405f43f74866c0a55a15a3f184f83b6 (patch) | |
tree | 8088007ac1003f2be910b8c5852032159a96687d | |
parent | 44d2ec14d88c28af9fa6701cbc4544659e4bddbc (diff) | |
download | edk2-platforms-f1c97bb3f405f43f74866c0a55a15a3f184f83b6.tar.xz |
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
-rw-r--r-- | UefiCpuPkg/CpuMpPei/PeiMpServices.c | 4 |
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
//
|