From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752085AbcFVUUY (ORCPT ); Wed, 22 Jun 2016 16:20:24 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:51765 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751123AbcFVUUW (ORCPT ); Wed, 22 Jun 2016 16:20:22 -0400 Date: Wed, 22 Jun 2016 16:20:13 -0400 (EDT) Message-Id: <20160622.162013.1679523707328434467.davem@davemloft.net> To: amitoj1606@gmail.com Cc: derek.chickles@caviumnetworks.com, satananda.burla@caviumnetworks.com, felix.manlunas@caviumnetworks.com, raghu.vatsavayi@caviumnetworks.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, julia.lawall@lip6.fr Subject: Re: [PATCH] net: cavium: liquidio: Use vzalloc instead of vmalloc From: David Miller In-Reply-To: <20160618065320.GA1906@amitoj-Inspiron-3542> References: <20160618065320.GA1906@amitoj-Inspiron-3542> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 22 Jun 2016 13:20:21 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > + vzalloc > (...); > if (!d) S > - memset(d, 0, sizeof(T)); > > Signed-off-by: Amitoj Kaur Chawla This dos not apply cleanly to net-next.