Commit bbce5a59 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

packet: use vzalloc()



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

Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
Cc: Neil Horman <nhorman@tuxdriver.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9a2d09cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = vmalloc((1 << order) * PAGE_SIZE);
	buffer = vzalloc((1 << order) * PAGE_SIZE);

	if (buffer)
		return buffer;