Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320755
b: refs/heads/master
c: aa91c4d
h: refs/heads/master
i:
  320753: 3dde3a5
  320751: faf6bc0
v: v3
  • Loading branch information
Jan Kara authored and Linus Torvalds committed Aug 1, 2012
1 parent 953489a commit a0eb956
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92ca922f0a19145f2dcc99d84fe656fa55b52c2e
refs/heads/master: aa91c4d898c062804f4d0a5da6d8ab013cd0e868
8 changes: 8 additions & 0 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,14 @@ static void *vb_alloc(unsigned long size, gfp_t gfp_mask)

BUG_ON(size & ~PAGE_MASK);
BUG_ON(size > PAGE_SIZE*VMAP_MAX_ALLOC);
if (WARN_ON(size == 0)) {
/*
* Allocating 0 bytes isn't what caller wants since
* get_order(0) returns funny result. Just warn and terminate
* early.
*/
return NULL;
}
order = get_order(size);

again:
Expand Down

0 comments on commit a0eb956

Please sign in to comment.