From f1c97bb3f405f43f74866c0a55a15a3f184f83b6 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 1 Sep 2015 08:55:49 +0000 Subject: [PATCH] UefiCpuPkg/CpuMpPei: Check Function pointer in PeiStartupAllAPs () Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18373 6f19259b-4bc3-4df7-8a09-765794883524 --- UefiCpuPkg/CpuMpPei/PeiMpServices.c | 4 ++++ 1 file changed, 4 insertions(+) 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 //