From 5b70667c58a29ac4d7fa526fd8b0c180f35a8202 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Wed, 2 Sep 2015 03:15:44 +0000 Subject: 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 Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@18381 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 // -- cgit v1.2.3