]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommu/arm-smmu-v3: Do not continue in __arm_smmu_domain_inv_range()
authorNicolin Chen <nicolinc@nvidia.com>
Sat, 21 Mar 2026 22:50:40 +0000 (15:50 -0700)
committerWill Deacon <will@kernel.org>
Tue, 24 Mar 2026 13:44:31 +0000 (13:44 +0000)
commit6a01b9f0a5ec38112db54370ce7794db2be5a5de
tree21706282a86e1c650f77d03002e167ba3c508358
parent4202fddd01c74fedc301ca2058623e28b8211dc1
iommu/arm-smmu-v3: Do not continue in __arm_smmu_domain_inv_range()

The loop in the __arm_smmu_domain_inv_range() is a while loop, not a for
loop. So, using "continue" is wrong that would fail to move the needle.

Meanwhile, though the current command is skipped, the batch still has to
go through arm_smmu_invs_end_batch() to be issued accordingly.

Thus, use "break" to fix the issue.

Fixes: 587bb3e56a2c ("iommu/arm-smmu-v3: Add arm_smmu_invs based arm_smmu_domain_inv_range()")
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c