diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-05-30 14:36:49 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-05-30 14:36:49 +1000 |
commit | e45406704965c2845e8333398756a6c4c89a86a7 (patch) | |
tree | 28824fb801642ac5ab528cfae85a6cca68ac8543 /mm/vmalloc.c | |
parent | 83115899f1f86838dbf3f2b27834e96b6f5943c2 (diff) | |
parent | 552b1316add572db70287f27e2ac132c56ca12a9 (diff) |
Merge branch 'akpm-current/current'
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 34a1c3e46ed7..b805cc5ecca0 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1759,12 +1759,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align, */ clear_vm_uninitialized_flag(area); - /* - * A ref_count = 2 is needed because vm_struct allocated in - * __get_vm_area_node() contains a reference to the virtual address of - * the vmalloc'ed block. - */ - kmemleak_alloc(addr, real_size, 2, gfp_mask); + kmemleak_vmalloc(area, size, gfp_mask); return addr; |