ArmPkg/ArmGicLib: use correct loop variable

The ArmGicLib API function GicGetCpuRedistributorBase () declares
GicCpuRedistributorBase to iterate over the redistributors of all
CPUs, but then inadvertently advances GicRedistributorBase instead.

Reported-by: "Oliyil Kunnil, Vishal" <vishalo@qti.qualcomm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
This commit is contained in:
Ard Biesheuvel 2016-09-07 08:01:31 +01:00
parent 1f8f4e33a1
commit 92cec05e27
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ GicGetCpuRedistributorBase (
}
// Move to the next GIC Redistributor frame
GicRedistributorBase += GicRedistributorGranularity;
GicCpuRedistributorBase += GicRedistributorGranularity;
}
// The Redistributor has not been found for the current CPU