X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=mm%2Fvmalloc.c;h=6e45b0f3d1256e0bdc3a3caffa74597cf96a5138;hb=52cc30862a8f90c98be8eb527d00e5e06d398b22;hp=e33e0ae69ad142d6241921d64cfaed37abfdb51a;hpb=e31a94ed371c70855eb30b77c490d6d85dd4da26;p=linux-2.6 diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e33e0ae69a..6e45b0f3d1 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -394,6 +395,7 @@ static void __vunmap(const void *addr, int deallocate_pages) } debug_check_no_locks_freed(addr, area->size); + debug_check_no_obj_freed(addr, area->size); if (deallocate_pages) { int i; @@ -545,6 +547,7 @@ void *__vmalloc_area(struct vm_struct *area, gfp_t gfp_mask, pgprot_t prot) * @gfp_mask: flags for the page level allocator * @prot: protection mask for the allocated pages * @node: node to use for allocation or -1 + * @caller: caller's return address * * Allocate enough pages to cover @size from the page level * allocator with @gfp_mask flags. Map them into contiguous