]> git.karo-electronics.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>
Mon, 19 May 2014 07:35:03 +0000 (17:35 +1000)
commit1009a51e975acd0aad28892dadd26fbba5e25719
treee5c76c454fffe6d6ab0c49b19e306b4649279e5a
parentf38c7ae7118177abf840135de92f54aee35418c3
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