Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2bd5ed00 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu/amd: Fix wrong check for ARRAY_SIZE()



The check in the for-loop is broken. Fix it and the
boot-crash it causes in AMD IOMMUv2 systems.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent 32ab31e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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]);
			}