iommu/arm-smmu: fix panic in arm_smmu_alloc_init_pte

kernel panic happened when iommu_unmap a buffer larger than 2MB,
more than expected pmd entries got “invalidated”, due to a wrong range
passed to arm_smmu_alloc_init_pte. it was likely a typo, now we fix
it, passing the correct "end" address to arm_smmu_alloc_init_pte.

Signed-off-by: Bin Wang <binw@marvell.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>

authored by Bin Wang and committed by Will Deacon aca1bc45 16c50dcf

Changed files
+1 -1
drivers
iommu
+1 -1
drivers/iommu/arm-smmu.c
··· 1381 1381 1382 1382 do { 1383 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 1385 prot, stage); 1386 1386 phys += next - addr; 1387 1387 } while (pmd++, addr = next, addr < end);