projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ab31e
)
iommu/amd: Fix wrong check for ARRAY_SIZE()
author
Joerg Roedel
<joerg.roedel@amd.com>
Fri, 10 Aug 2012 09:34:08 +0000
(11:34 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Fri, 10 Aug 2012 09:34:08 +0000
(11:34 +0200)
The check in the for-loop is broken. Fix it and the
boot-crash it causes in AMD IOMMUv2 systems.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu_init.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu_init.c
b/drivers/iommu/amd_iommu_init.c
index 0a2ea317120a3763212586f97c2773b5a8c03b03..18a89b760aaa3d78940021f0637e7f090116bb23 100644
(file)
--- a/
drivers/iommu/amd_iommu_init.c
+++ b/
drivers/iommu/amd_iommu_init.c
@@
-1111,7
+1111,7
@@
static void print_iommu_info(void)
if (iommu->cap & (1 << IOMMU_CAP_EFR)) {
pr_info("AMD-Vi: Extended features: ");
- for (i = 0; ARRAY_SIZE(feat_str); ++i) {
+ for (i = 0;
i <
ARRAY_SIZE(feat_str); ++i) {
if (iommu_feature(iommu, (1ULL << i)))
pr_cont(" %s", feat_str[i]);
}