]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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)
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

index 73795ed4e56c41a67f7d3778b03bce20db908d10..e658e9bff5d8107b3914bdf1e9e1e51a4e4d4cd7 100644 (file)
@@ -76,7 +76,7 @@ GicGetCpuRedistributorBase (
     }\r
 \r
     // Move to the next GIC Redistributor frame\r
-    GicRedistributorBase += GicRedistributorGranularity;\r
+    GicCpuRedistributorBase += GicRedistributorGranularity;\r
   }\r
 \r
   // The Redistributor has not been found for the current CPU\r