Revert "BACKPORT: FROMGIT: mm/cma.c: make kmemleak aware of all CMA regions"

This reverts commit e51492910c. This
solution was ultimately not merged upstream. Revert this commit so that
the proper solution that was merged upstream [1] can be applied to this
branch.

[1]: https://lore.kernel.org/all/20230208232001.2052777-1-isaacmanjarres@google.com/
Bug: 265065728
Change-Id: I1a614f4a8268d0fb3caf5645fc61539afba7305d
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
This commit is contained in:
Isaac J. Manjarres
2023-02-13 16:10:59 -08:00
committed by Matthias Männich
parent 5862eafd8e
commit 20c1f0a6d2

View File

@@ -330,8 +330,6 @@ int __init cma_declare_contiguous_nid(phys_addr_t base,
ret = -EBUSY;
goto err;
}
kmemleak_alloc_phys(base, size, 0, 0);
} else {
phys_addr_t addr = 0;