Re: [PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc

From: David Miller
Date: Wed Jun 22 2016 - 16:20:27 EST


From: Amitoj Kaur Chawla <amitoj1606@xxxxxxxxx>
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
> + vzalloc
> (...);
> if (!d) S
> - memset(d, 0, sizeof(T));
>
> Signed-off-by: Amitoj Kaur Chawla <amitoj1606@xxxxxxxxx>

This dos not apply cleanly to net-next.