Re: [PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc
From: Amitoj Kaur Chawla Date: Sat, 18 Jun 2016 12:23:20 +0530 > vzalloc combines vmalloc and memset 0. > > The Coccinelle semantic patch used to make this change is as follows: > @@ > type T; > T *d; > expression e; > statement S; > @@ > > d = > -vmalloc > +vzal
[PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc
vzalloc combines vmalloc and memset 0. The Coccinelle semantic patch used to make this change is as follows: @@ type T; T *d; expression e; statement S; @@ d = -vmalloc +vzalloc (...); if (!d) S - memset(d, 0, sizeof(T)); Signed-off-by: