diff options
author | Will Deacon <[email protected]> | 2015-07-16 17:50:12 +0100 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-07-31 11:38:25 +0100 |
commit | 28c8b4045b18b013e05656b493ce9a57cbf1f09a (patch) | |
tree | fcaa96123a1917e6488ed182e255fdd64df6a04d /tools/perf/scripts/python | |
parent | ec11d63c677bbba15e65a35f5ba06c1d6eba4dbe (diff) |
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 <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions