summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/arm-smmu.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-07-16 17:50:12 +0100
committerWill Deacon <will.deacon@arm.com>2015-07-31 11:38:25 +0100
commit28c8b4045b18b013e05656b493ce9a57cbf1f09a (patch)
treefcaa96123a1917e6488ed182e255fdd64df6a04d /drivers/iommu/arm-smmu.c
parentec11d63c677bbba15e65a35f5ba06c1d6eba4dbe (diff)
downloadtalos-obmc-linux-28c8b4045b18b013e05656b493ce9a57cbf1f09a.tar.gz
talos-obmc-linux-28c8b4045b18b013e05656b493ce9a57cbf1f09a.zip
iommu/arm-smmu: Limit 2-level strtab allocation for small SID sizes
If the StreamIDs in a system can all be resolved by a single level-2 stream table (i.e. SIDSIZE < SPLIT), then we currently get our maths wrong and allocate the largest strtab we support, thanks to unsigned overflow in our calculation. This patch fixes the issue by checking the SIDSIZE explicitly when calculating the size of our first-level stream table. Reported-by: Matt Evans <matt.evans@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/iommu/arm-smmu.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud