mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
iommu/exynos: Tell kmemleak to ignore 2nd level page tables
The pointers to the 2nd level page tables are converted to 1st level page table entries, which means kmemleak can't find them and assumes they have been leaked. Call kmemleak_ignore on the 2nd level page tables to prevent them from showing up in kmemleak reports. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: Dmitry Torokhov <dtor@chromium.org> Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
030bbdbf4c
commit
dc3814f404
1 changed files with 1 additions and 0 deletions
|
@ -862,6 +862,7 @@ static sysmmu_pte_t *alloc_lv2entry(struct exynos_iommu_domain *priv,
|
|||
return ERR_PTR(-ENOMEM);
|
||||
|
||||
*sent = mk_lv1ent_page(virt_to_phys(pent));
|
||||
kmemleak_ignore(pent);
|
||||
*pgcounter = NUM_LV2ENTRIES;
|
||||
pgtable_flush(pent, pent + NUM_LV2ENTRIES);
|
||||
pgtable_flush(sent, sent + 1);
|
||||
|
|
Loading…
Reference in a new issue