OSDN Git Service

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)
commit69146e7bfc38139a134c79a4ee6607c881891786
tree23c2479941f187e1ab2e7d8915c09ad517bcbc04
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
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