Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 12c2ab09 authored by Will Deacon's avatar Will Deacon
Browse files

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: <stable@vger.kernel.org>
Reported-by: default avatarZhang Bo <zhangbo_a@xiaomi.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 6380be05
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment