Thread (8 messages) 8 messages, 4 authors, 2017-06-23

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

From: Dan Carpenter <hidden>
Date: 2017-06-23 10:35:11
Also in: kernel-janitors

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:
quoted
The copy_to_user() function returns the number of bytes remaining but we
want to return -EFAULT here.
because?
Because it's a failure path?

regards,
dan carpenter
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help