diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-09-07 08:01:31 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-09-09 16:56:38 +0100 |
commit | 92cec05e27d9eafe188da6a19d97bf6509bc164b (patch) | |
tree | ebffff64aee7d84cb84bac7b2d96fa382921fa48 | |
parent | 1f8f4e33a139845bd73cc1ab2fdfc83e5f0ce56d (diff) | |
download | edk2-92cec05e27d9eafe188da6a19d97bf6509bc164b.tar.gz edk2-92cec05e27d9eafe188da6a19d97bf6509bc164b.tar.bz2 edk2-92cec05e27d9eafe188da6a19d97bf6509bc164b.zip |
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>
-rw-r--r-- | ArmPkg/Drivers/ArmGic/ArmGicLib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPkg/Drivers/ArmGic/ArmGicLib.c b/ArmPkg/Drivers/ArmGic/ArmGicLib.c index 73795ed4e5..e658e9bff5 100644 --- a/ArmPkg/Drivers/ArmGic/ArmGicLib.c +++ b/ArmPkg/Drivers/ArmGic/ArmGicLib.c @@ -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
|