iommu/arm-smmu-v3: Fix l1 stream table size in the error message
Subsystems (2)
PATCH 1/1 iommu/arm-smmu-v3: Fix l1 stream table size in the error message
The actual size of level-1 stream table is l1size. This looks like an oversight on commit d2e88e7c081ef ("iommu/arm-smmu: Fix LOG2SIZE setting for 2-level stream tables") which forgot to update the @size in error message as well.
As memory allocation failure is already bad enough, nothing worse would happen. But let's be careful.
--- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +1 -1
@@ -3280,7 +3280,7 @@ static int arm_smmu_init_strtab_2lvl(struct arm_smmu_device *smmu)if (!strtab) {dev_err (smmu->dev,"failed to allocate l1 stream table (%u bytes)\n" , - size); + l1size);return -ENOMEM ; } cfg->strtab = strtab;
Signature · 1 line
2.19.1
Quoted 7 lines · Zenghui Yu
The actual size of level-1 stream table is l1size. This looks like an oversight on commit
d2e88e7c081ef("iommu/arm-smmu: Fix LOG2SIZE setting for 2-level stream tables") which forgot to update the @size in error message as well.As memory allocation failure is already bad enough, nothing worse would happen. But let's be careful.
Applied to will (for-joerg/arm-smmu/updates), thanks!
[1/1] iommu/arm-smmu-v3: Fix l1 stream table size in the error message
https://git.kernel.org/will/c/dc898eb84b25
Cheers,
Signature · 9 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ iommu mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/iommu