From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF5B372 for ; Fri, 22 Oct 2021 09:07:11 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id D8A1660F12; Fri, 22 Oct 2021 09:07:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634893631; bh=C511Ji1funobqNIOfA8ILUgvJjDmfOoWhWOgm02gUls=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y9xxuG1u/piPP4mDYAXsWlwhzcBvsZmVdDUV3jseLJSOavlIOCaukzhg8abWaERJK PmFSeg0aBouwM/KWJCDOCJAv7Aylilt6UkfUIGbOFloN2DcbZQQZoDIGJyeKOx1Zzd quYnEt2Ib26+zd6hYS+xqgsqTJfq+9KTDYhN3aAM= Date: Fri, 22 Oct 2021 11:07:09 +0200 From: Greg KH To: Kai Song Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: r8188eu: Use memdup_user instead of kmalloc/copy_from_user Message-ID: References: <20211022025555.6612-1-songkai01@inspur.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211022025555.6612-1-songkai01@inspur.com> On Fri, Oct 22, 2021 at 10:55:55AM +0800, Kai Song wrote: > Use memdup_user helper instead of open-coding to simplify > the code. > > Signed-off-by: Kai Song > --- > drivers/staging/r8188eu/os_dep/ioctl_linux.c | 10 +++------- > 1 file changed, 3 insertions(+), 7 deletions(-) Someone sent this just before you did, sorry: https://lore.kernel.org/r/20211021122015.6974-1-wanjiabing@vivo.com