From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Subject: Re: [PATCH -net] tls: return -EFAULT if copy_to_user() fails Date: Fri, 23 Jun 2017 13:36:12 +0300 Message-ID: <20170623103612.ycduw43oyi6hmtp3@mwanda> References: <20170623101544.c5bvwe5cd6e46bd5@mwanda> <1498213904.24295.10.camel@perches.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Dave Watson , Aviad Yehezkel , Ilya Lesokhin , "David S. Miller" , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org To: Joe Perches Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:45944 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754510AbdFWKge (ORCPT ); Fri, 23 Jun 2017 06:36:34 -0400 Content-Disposition: inline In-Reply-To: <1498213904.24295.10.camel@perches.com> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Jun 23, 2017 at 03:31:44AM -0700, Joe Perches wrote: > On Fri, 2017-06-23 at 13:15 +0300, Dan Carpenter wrote: > > The copy_to_user() function returns the number of bytes remaining but we > > want to return -EFAULT here. > > because? > Rhetorical questions don't work over email. Are you honestly confused by this patch? regards, dan carpenter