From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752710AbcEWAUT (ORCPT ); Sun, 22 May 2016 20:20:19 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:46258 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbcEWAUR (ORCPT ); Sun, 22 May 2016 20:20:17 -0400 X-Sasl-enc: DQ7g10qb4E4/fmwLJrh636DkDuUBqAh2taTrPcBYUjpu 1463962814 Date: Mon, 23 May 2016 10:20:07 +1000 From: Tobin Harding To: Greg Kroah-Hartman Cc: patrik.r.jakobsson@gmail.com, David Airlie , Oleg Drokin , Andreas Dilger , James Simmons , "John L. Hammond" , Dmitry Eremin , Frank Zago , "Kirill A. Shutemov" , Julia Lawall , Al Viro , James Nunez , Abdul Hussain , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, lustre-devel@lists.lustre.org, devel@driverdev.osuosl.org Subject: Re: [PATCH] staging: lustre: llite: kzalloc/copy_to_user to memdup_user Message-ID: <20160523002007.GA14493@eros.local> References: <1463953771-16942-1-git-send-email-me@tobin.cc> <20160522222538.GA17573@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160522222538.GA17573@kroah.com> X-Mailer: Mutt 1.6.1 (2016-04-27) User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 22, 2016 at 03:25:38PM -0700, Greg Kroah-Hartman wrote: > On Mon, May 23, 2016 at 07:49:29AM +1000, Tobin C Harding wrote: > > kzalloc call followed by copy_to_user can be replaced by call to memdup_user. > > > > Signed-off-by: Tobin C Harding > > Why did you send this twice? Because I'm a git send-email amateur. > > --- > > drivers/gpu/drm/gma500/gma_display.c | 2 +- > > drivers/staging/lustre/lustre/llite/dir.c | 22 +++++++--------------- > > 2 files changed, 8 insertions(+), 16 deletions(-) > > > > diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c > > index 5bf765d..8a1fb25 100644 > > --- a/drivers/gpu/drm/gma500/gma_display.c > > +++ b/drivers/gpu/drm/gma500/gma_display.c > > @@ -285,7 +285,7 @@ void gma_crtc_dpms(struct drm_crtc *crtc, int mode) > > > > /* Wait for vblank for the disable to take effect */ > > gma_wait_for_vblank(dev); > > - > > +l > > What? What does this have to do with lustre? Turns out I'm a git amateur in general, the gma_display changes should not have been committed on this branch. > It's kind of obvious you didn't build this :( Epic fail. > Please be more careful in the future. > > greg k-h I am humbly attempting to learn the way of kernel dev, thank you for your patience, I will endeavor to be more careful. Regards, Tobin Harding.