Skip to content

Commit

Permalink
iommu/exynos: Tell kmemleak to ignore 2nd level page tables
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
  • Loading branch information
colincross authored and joergroedel committed May 11, 2015
1 parent 030bbdb commit dc3814f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/exynos-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dc3814f

Please sign in to comment.