Re: [PATCH -net] tls: return -EFAULT if copy_to_user() fails

Dan Carpenter
2017-06-23T10:36:12Z

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