Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1429092

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

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc
Date 2016-06-22 22:30 +0200
Message-ID <rMWWB-8bt-5@gated-at.bofh.it> (permalink)
References <rLioy-Dj-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

This dos not apply cleanly to net-next.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc Amitoj Kaur Chawla <amitoj1606@gmail.com> - 2016-06-18 09:00 +0200
  Re: [PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc David Miller <davem@davemloft.net> - 2016-06-22 22:30 +0200

csiph-web