Commit [907837] Maximize Restore History

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 <>
Acked-by: Pekka Enberg <>
Acked-by: Yinghai Lu <>
Cc: H. Peter Anvin <>

Catalin Marinas Catalin Marinas 2010-07-19

changed kernel/early_res.c
changed mm/page_alloc.c
kernel/early_res.c Diff Switch to side-by-side view
mm/page_alloc.c Diff Switch to side-by-side view