From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbcBGHbG (ORCPT ); Sun, 7 Feb 2016 02:31:06 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:60600 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbcBGHbE (ORCPT ); Sun, 7 Feb 2016 02:31:04 -0500 Date: Sat, 6 Feb 2016 23:31:03 -0800 From: Greg KH To: Rahul Pathak Cc: jslaby@suse.com, samuel.thibault@ens-lyon.org, pavel@ucw.cz, dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tty: vt: use memdup_user to reuse the code Message-ID: <20160207073103.GA1311@kroah.com> References: <20151219184533.GA7305@platform-Vostro-3546> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151219184533.GA7305@platform-Vostro-3546> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 20, 2015 at 12:15:33AM +0530, Rahul Pathak wrote: > Fixing coccicheck warning which recommends to use memdup_user instead > to reimplement its code, using memdup_user simplifies the code > > ./drivers/tty/vt/keyboard.c:1709:9-16: WARNING opportunity for memdup_user > ./drivers/tty/vt/keyboard.c:1752:9-16: WARNING opportunity for memdup_user > > Signed-off-by: Rahul Pathak > Acked-by: Dmitry Torokhov > --- > drivers/tty/vt/keyboard.c | 28 ++++++++-------------------- > 1 file changed, 8 insertions(+), 20 deletions(-) Someone else sent half of this patch already, can you redo it against my tty-testing branch of the tty.git tree and resend it? thanks, greg k-h