Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:60642 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751434AbeC1Ljy (ORCPT ); Wed, 28 Mar 2018 07:39:54 -0400 Date: Wed, 28 Mar 2018 13:39:51 +0200 From: Greg Kroah-Hartman To: Colin King Cc: Aditya Shankar , Ganesh Krishna , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: wilc1000: replace kmalloc + memcpy with kmemdup Message-ID: <20180328113951.GA11213@kroah.com> (sfid-20180328_134020_870832_85BED69C) References: <20180326171629.28700-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180326171629.28700-1-colin.king@canonical.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Mon, Mar 26, 2018 at 06:16:29PM +0100, Colin King wrote: > From: Colin Ian King > > Replace several allocation and memcpys with kmemdup and add in some > missing memory allocation failure checks. Also fix an incorrect > -EFAULT return with -ENOMEM. > > Signed-off-by: Colin Ian King > --- > drivers/staging/wilc1000/host_interface.c | 75 +++++++++++++++++++------------ > 1 file changed, 46 insertions(+), 29 deletions(-) Doesn't apply to my tree anymore, due to patches submitted before yours :( greg k-h