Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157414
b: refs/heads/master
c: 008139d
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas committed Aug 27, 2009
1 parent e4e4fcc commit 62d9f24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd6789675ebfb9185cb4fb68dc51010b4e95d952
refs/heads/master: 008139d9146f9afee0e58df4b7422d0c9921f8ce
6 changes: 5 additions & 1 deletion trunk/mm/bootmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,11 @@ static void * __init alloc_bootmem_core(struct bootmem_data *bdata,
region = phys_to_virt(PFN_PHYS(bdata->node_min_pfn) +
start_off);
memset(region, 0, size);
kmemleak_alloc(region, size, 1, 0);
/*
* The min_count is set to 0 so that bootmem allocated blocks
* are never reported as leaks.
*/
kmemleak_alloc(region, size, 0, 0);
return region;
}

Expand Down

0 comments on commit 62d9f24

Please sign in to comment.