From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net: Use kmemdup instead of kmalloc and memcpy Date: Tue, 27 Dec 2016 20:16:47 -0500 (EST) Message-ID: <20161227.201647.338740723131819171.davem@davemloft.net> References: <1482520498-28259-1-git-send-email-mayhs11saini@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, mst@redhat.com To: mayhs11saini@gmail.com Return-path: In-Reply-To: <1482520498-28259-1-git-send-email-mayhs11saini@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org List-Id: netdev.vger.kernel.org From: Shyam Saini Date: Sat, 24 Dec 2016 00:44:58 +0530 > when some other buffer is immediately copied into allocated region. > Replace calls to kmalloc followed by a memcpy with a direct > call to kmemdup. > > Signed-off-by: Shyam Saini Applied.