projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a2d09c
)
packet: use vzalloc()
author
Eric Dumazet
<
[email protected]
>
Sat, 20 Nov 2010 07:31:54 +0000
(07:31 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 21 Nov 2010 18:01:42 +0000
(10:01 -0800)
alloc_one_pg_vec_page() is supposed to return zeroed memory, so use
vzalloc() instead of vmalloc()
Signed-off-by: Eric Dumazet <
[email protected]
>
Cc: Neil Horman <
[email protected]
>
Acked-by: Neil Horman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/packet/af_packet.c
patch
|
blob
|
history
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index b6372dd128d76cb70a189bc27f61c79208c78aad..422705d62b5baa0e0796300a6ab2adc51e7d6e8c 100644
(file)
--- a/
net/packet/af_packet.c
+++ b/
net/packet/af_packet.c
@@
-2367,7
+2367,7
@@
static inline char *alloc_one_pg_vec_page(unsigned long order,
* __get_free_pages failed, fall back to vmalloc
*/
*flags |= PGV_FROM_VMALLOC;
- buffer = v
m
alloc((1 << order) * PAGE_SIZE);
+ buffer = v
z
alloc((1 << order) * PAGE_SIZE);
if (buffer)
return buffer;