]> 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>
Wed, 14 May 2014 00:02:04 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:04 +0000 (10:02 +1000)
commitbf237f21474719f18032a7ceed338cdda5dd0afc
tree9a5ef8cb0e8752f63f4bc6a3cddc7a6befda3c14
parent1c45394c35bbea3a1664048fc938967f381797ba
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