kmemleak: Add support for NO_BOOTMEM configurations
commit105adbca9af012dc51b41a1fbea71e1b6d7ebc17
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 19 Jul 2010 10:54:15 +0000 (19 11:54 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:50 +0000 (2 10:29 -0700)
tree3048556f95b54c42939ae337a93c07036a074ee3
parenta0067e0cd98be2022d3ff5c41d4f5a24ff48918f
kmemleak: Add support for NO_BOOTMEM configurations

commit 9078370c0d2cfe4a905aa34f398bbb0d65921a2b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/early_res.c
mm/page_alloc.c