diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2009-09-20 08:55:36 -0400 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-09-20 08:55:36 -0400 |
| commit | 6469f540ea37d53db089c8fea9c0c77a3d9353d4 (patch) | |
| tree | 1dc9dc077150d57f4424cae49e711b5dd6e903a1 /mm/bootmem.c | |
| parent | 304e6d5fe294b80e6d3107f99ec241816390ebcc (diff) | |
| parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/mtd/mtdcore.c
Merged in order that I can apply the Nomadik nand/onenand support patches.
Diffstat (limited to 'mm/bootmem.c')
| -rw-r--r-- | mm/bootmem.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index 701740c9e81b..555d5d2731c6 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
| @@ -521,7 +521,11 @@ find_block: | |||
| 521 | region = phys_to_virt(PFN_PHYS(bdata->node_min_pfn) + | 521 | region = phys_to_virt(PFN_PHYS(bdata->node_min_pfn) + |
| 522 | start_off); | 522 | start_off); |
| 523 | memset(region, 0, size); | 523 | memset(region, 0, size); |
| 524 | kmemleak_alloc(region, size, 1, 0); | 524 | /* |
| 525 | * The min_count is set to 0 so that bootmem allocated blocks | ||
| 526 | * are never reported as leaks. | ||
| 527 | */ | ||
| 528 | kmemleak_alloc(region, size, 0, 0); | ||
| 525 | return region; | 529 | return region; |
| 526 | } | 530 | } |
| 527 | 531 | ||
