]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memblock.c: call kmemleak directly from memblock_(alloc|free)
authorCatalin Marinas <catalin.marinas@arm.com>
Fri, 6 Jun 2014 21:38:20 +0000 (14:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:17 +0000 (16:08 -0700)
commitb4e22f32e02d20c4a55ad2f0b82cafc663fc79b2
treeec6157cd2cd37203373c4e1c8ccf93906ceed7f0
parent6865437de1711ee5b323dc74c4c014e9fdfb3f63
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memblock.c
mm/nobootmem.c