]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
packet: use vzalloc()
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 20 Nov 2010 07:31:54 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Nov 2010 18:01:42 +0000 (10:01 -0800)
commitbbce5a59e4e0e6e1dbc85492caaf310ff6611309
treeba64b369e60484e681e57ee63715b3d22cc7db16
parent9a2d09cf61c9d9f1b31998bec5363a583e4564a4
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>
net/packet/af_packet.c