]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu: Fix the index calculation of strtab
authorZhen Lei <thunder.leizhen@huawei.com>
Fri, 26 Jun 2015 08:32:58 +0000 (09:32 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 8 Jul 2015 16:24:38 +0000 (17:24 +0100)
commit83db467ad1f0ab92da9d9032d751f24f209fbc55
tree23c2479941f187e1ab2e7d8915c09ad517bcbc04
parent7080a36663ec94f7ed976e9e162c15cc4a03bc56
iommu/arm-smmu: Fix the index calculation of strtab

The element size of cfg->strtab is just one DWORD, so we should use a
multiply operation instead of a shift when calculating the level 1
index.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c