diff options
author | Will Deacon <[email protected]> | 2015-12-15 16:08:12 +0000 |
---|---|---|
committer | Will Deacon <[email protected]> | 2015-12-17 12:05:36 +0000 |
commit | 12c2ab09571e8aae3a87da2a4a452632a5fac1e5 (patch) | |
tree | 46a0b2a0f8448f954ee640dd5dc5633526105b60 /tools/perf/scripts/python/stackcollapse.py | |
parent | 6380be0535fd60c0a346ec0ae447f0f6c9e3ea83 (diff) |
iommu/io-pgtable-arm: Ensure we free the final level on teardown
When tearing down page tables, we return early for the final level
since we know that we won't have any table pointers to follow.
Unfortunately, this also means that we forget to free the final level,
so we end up leaking memory.
Fix the issue by always freeing the current level, but just don't bother
to iterate over the ptes if we're at the final level.
Cc: <[email protected]>
Reported-by: Zhang Bo <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions