packet: use vzalloc()

alloc_one_pg_vec_page() is supposed to return zeroed memory, so use
vzalloc() instead of vmalloc()

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Eric Dumazet 2010-11-20 07:31:54 +00:00 committed by David S. Miller
parent 9a2d09cf61
commit bbce5a59e4

View File

@ -2367,7 +2367,7 @@ static inline char *alloc_one_pg_vec_page(unsigned long order,
* __get_free_pages failed, fall back to vmalloc * __get_free_pages failed, fall back to vmalloc
*/ */
*flags |= PGV_FROM_VMALLOC; *flags |= PGV_FROM_VMALLOC;
buffer = vmalloc((1 << order) * PAGE_SIZE); buffer = vzalloc((1 << order) * PAGE_SIZE);
if (buffer) if (buffer)
return buffer; return buffer;