]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/packet/af_packet.c
packet: use vzalloc()
[net-next-2.6.git] / net / packet / af_packet.c
index b6372dd128d76cb70a189bc27f61c79208c78aad..422705d62b5baa0e0796300a6ab2adc51e7d6e8c 100644 (file)
@@ -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;