iommu/arm-smmu: fix panic in arm_smmu_alloc_init_pte
authorBin Wang <binw@marvell.com>
Fri, 21 Mar 2014 10:06:07 +0000 (10:06 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 15 Apr 2014 11:23:11 +0000 (12:23 +0100)
commitaca1bc4595c5757f01167ab5bfef2a4f8edfcf4f
tree2b3939f00cfe54397d3a9f39731d01c601f43e53
parent16c50dcfc4c186ed09a4d80fbd511492d024a1c5
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>
drivers/iommu/arm-smmu.c