projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d8a178
)
lib/genalloc.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
author
Joe Perches
<joe@perches.com>
Wed, 11 Sep 2013 21:23:06 +0000
(14:23 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:13 +0000
(15:58 -0700)
Use the helper function instead of __GFP_ZERO.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/genalloc.c
patch
|
blob
|
history
diff --git
a/lib/genalloc.c
b/lib/genalloc.c
index
2a39bf6
..
c522fac
100644
(file)
--- a/
lib/genalloc.c
+++ b/
lib/genalloc.c
@@
-187,7
+187,7
@@
int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy
int nbytes = sizeof(struct gen_pool_chunk) +
BITS_TO_LONGS(nbits) * sizeof(long);
- chunk = k
malloc_node(nbytes, GFP_KERNEL | __GFP_ZERO
, nid);
+ chunk = k
zalloc_node(nbytes, GFP_KERNEL
, nid);
if (unlikely(chunk == NULL))
return -ENOMEM;