kmemleak: Add support for NO_BOOTMEM configurations
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 10:54:15 +0000 (11:54 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 10:54:15 +0000 (11:54 +0100)
commit9078370c0d2cfe4a905aa34f398bbb0d65921a2b
tree0b0d3b1f2a9a6dd2f2deaae9fbf9c8c5509ac13c
parent7952f98818d561ed0e11434a7a16acd9a7bae859
kmemleak: Add support for NO_BOOTMEM configurations

With commits 08677214 and 59be5a8e, alloc_bootmem()/free_bootmem() and
friends use the early_res functions for memory management when
NO_BOOTMEM is enabled. This patch adds the kmemleak calls in the
corresponding code paths for bootmem allocations.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Pekka Enberg <penberg@cs.helsinki.fi>
Acked-by: Yinghai Lu <yinghai@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: stable@kernel.org
kernel/early_res.c
mm/page_alloc.c