]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm/memblock.c: call kmemleak directly from memblock_(alloc|free)
authorCatalin Marinas <catalin.marinas@arm.com>
Sat, 17 May 2014 13:19:28 +0000 (23:19 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 May 2014 07:11:36 +0000 (17:11 +1000)
commit65e651c806c611446af2c201387a3c99a2aafd64
treeb587a125e36b56740b5507dcef08de75f5240eec
parent0dc3553eb35d6e86dee529ec127f60a810b59599
mm/memblock.c: call kmemleak directly from memblock_(alloc|free)

Kmemleak could ignore memory blocks allocated via memblock_alloc() leading
to false positives during scanning.  This patch adds the corresponding
callbacks and removes kmemleak_free_* calls in mm/nobootmem.c to avoid
duplication.  The kmemleak_alloc() in mm/nobootmem.c is kept since
__alloc_memory_core_early() does not use memblock_alloc() directly.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memblock.c
mm/nobootmem.c