X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=mm%2Fbootmem.c;h=555d5d2731c6d963a66db15d9eb66aa03e9d6c8d;hb=43b38520296d0c1730c78c878e1d6d1a49122091;hp=701740c9e81bdf967062b340e53cff8b7913427a;hpb=ec3a354bd46cbdaa7933ba57a142ee2d2dbde0e5;p=safe%2Fjmp%2Flinux-2.6 diff --git a/mm/bootmem.c b/mm/bootmem.c index 701740c..555d5d2 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -521,7 +521,11 @@ find_block: 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; }