ArmPkg/ArmGicLib: use correct loop variable
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 7 Sep 2016 07:01:31 +0000 (08:01 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 9 Sep 2016 15:56:38 +0000 (16:56 +0100)
commit92cec05e27d9eafe188da6a19d97bf6509bc164b
treeebffff64aee7d84cb84bac7b2d96fa382921fa48
parent1f8f4e33a139845bd73cc1ab2fdfc83e5f0ce56d
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>
ArmPkg/Drivers/ArmGic/ArmGicLib.c