From 13181dde423b74060eb2b7b1e8cbb4e8b2dc6775 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Fri, 19 Jun 2015 08:27:35 +0000 Subject: [PATCH] UefiCpuPkg/CpuDxe: NumberOfData is not BOOLEAN type Should check NumberOfData value instead of treat its value as one BOOLEAN type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Shuming Qiu git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17672 6f19259b-4bc3-4df7-8a09-765794883524 --- UefiCpuPkg/CpuDxe/CpuMp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 07abe4bf8b..4ddcca208a 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -1580,7 +1580,7 @@ CollectBistDataFromHob ( } } - while (NumberOfData--) { + while ((NumberOfData--) > 0) { for (ProcessorNumber = 0; ProcessorNumber < mMpSystemData.NumberOfProcessors; ProcessorNumber++) { CpuData = &mMpSystemData.CpuDatas[ProcessorNumber]; InitialLocalApicId = (UINT32) CpuData->Info.ProcessorId; -- 2.39.2