From: Amitoj Kaur Chawla <amitoj1...@gmail.com>
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 <amitoj1...@gmail.com>

This dos not apply cleanly to net-next.

Reply via email to