diff options
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
-rw-r--r-- | drivers/iommu/arm-smmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index 8b89e33a89fe..647c3c7fd742 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c | |||
@@ -1381,7 +1381,7 @@ static int arm_smmu_alloc_init_pmd(struct arm_smmu_device *smmu, pud_t *pud, | |||
1381 | 1381 | ||
1382 | do { | 1382 | do { |
1383 | next = pmd_addr_end(addr, end); | 1383 | next = pmd_addr_end(addr, end); |
1384 | ret = arm_smmu_alloc_init_pte(smmu, pmd, addr, end, pfn, | 1384 | ret = arm_smmu_alloc_init_pte(smmu, pmd, addr, next, pfn, |
1385 | prot, stage); | 1385 | prot, stage); |
1386 | phys += next - addr; | 1386 | phys += next - addr; |
1387 | } while (pmd++, addr = next, addr < end); | 1387 | } while (pmd++, addr = next, addr < end); |
@@ -1499,7 +1499,7 @@ static size_t arm_smmu_unmap(struct iommu_domain *domain, unsigned long iova, | |||
1499 | 1499 | ||
1500 | ret = arm_smmu_handle_mapping(smmu_domain, iova, 0, size, 0); | 1500 | ret = arm_smmu_handle_mapping(smmu_domain, iova, 0, size, 0); |
1501 | arm_smmu_tlb_inv_context(&smmu_domain->root_cfg); | 1501 | arm_smmu_tlb_inv_context(&smmu_domain->root_cfg); |
1502 | return ret ? ret : size; | 1502 | return ret ? 0 : size; |
1503 | } | 1503 | } |
1504 | 1504 | ||
1505 | static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, | 1505 | static phys_addr_t arm_smmu_iova_to_phys(struct iommu_domain *domain, |