diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index e33e0ae69ad1..6e45b0f3d125 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/spinlock.h> | 15 | #include <linux/spinlock.h> |
16 | #include <linux/interrupt.h> | 16 | #include <linux/interrupt.h> |
17 | #include <linux/seq_file.h> | 17 | #include <linux/seq_file.h> |
18 | #include <linux/debugobjects.h> | ||
18 | #include <linux/vmalloc.h> | 19 | #include <linux/vmalloc.h> |
19 | #include <linux/kallsyms.h> | 20 | #include <linux/kallsyms.h> |
20 | 21 | ||
@@ -394,6 +395,7 @@ static void __vunmap(const void *addr, int deallocate_pages) | |||
394 | } | 395 | } |
395 | 396 | ||
396 | debug_check_no_locks_freed(addr, area->size); | 397 | debug_check_no_locks_freed(addr, area->size); |
398 | debug_check_no_obj_freed(addr, area->size); | ||
397 | 399 | ||
398 | if (deallocate_pages) { | 400 | if (deallocate_pages) { |
399 | int i; | 401 | int i; |
@@ -545,6 +547,7 @@ void *__vmalloc_area(struct vm_struct *area, gfp_t gfp_mask, pgprot_t prot) | |||
545 | * @gfp_mask: flags for the page level allocator | 547 | * @gfp_mask: flags for the page level allocator |
546 | * @prot: protection mask for the allocated pages | 548 | * @prot: protection mask for the allocated pages |
547 | * @node: node to use for allocation or -1 | 549 | * @node: node to use for allocation or -1 |
550 | * @caller: caller's return address | ||
548 | * | 551 | * |
549 | * Allocate enough pages to cover @size from the page level | 552 | * Allocate enough pages to cover @size from the page level |
550 | * allocator with @gfp_mask flags. Map them into contiguous | 553 | * allocator with @gfp_mask flags. Map them into contiguous |