Home
last modified time | relevance | path

Searched hist:"12 c2ab09571e8aae3a87da2a4a452632a5fac1e5" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iommu/
H A Dio-pgtable-arm.cdiff 12c2ab09571e8aae3a87da2a4a452632a5fac1e5 Tue Dec 15 10:08:12 CST 2015 Will Deacon <will.deacon@arm.com> 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: Zhang Bo <zhangbo_a@xiaomi.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>