Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272147
b: refs/heads/master
c: de7d2b5
h: refs/heads/master
i:
  272145: 36b6839
  272143: 220d4d6
v: v3
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Nov 1, 2011
1 parent 6025e86 commit 11d7748
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: f0dfcde099453aa4c0dc42473828d15a6d492936
refs/heads/master: de7d2b567d040e3b67fe7121945982f14343213d
11 changes: 8 additions & 3 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1625,13 +1625,12 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,

size = PAGE_ALIGN(size);
if (!size || (size >> PAGE_SHIFT) > totalram_pages)
return NULL;
goto fail;

area = __get_vm_area_node(size, align, VM_ALLOC | VM_UNLIST,
start, end, node, gfp_mask, caller);

if (!area)
return NULL;
goto fail;

addr = __vmalloc_area_node(area, gfp_mask, prot, node, caller);

Expand All @@ -1649,6 +1648,12 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
kmemleak_alloc(addr, real_size, 3, gfp_mask);

return addr;

fail:
warn_alloc_failed(gfp_mask, 0,
"vmalloc: allocation failure: %lu bytes\n",
real_size);
return NULL;
}

/**
Expand Down

0 comments on commit 11d7748

Please sign in to comment.