lkml.org 
[lkml]   [2000]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] drivers/char/ppdev.c: returning copy_to_user result
> Please take a look and consider applying. Feedback about why it would
> be wrong would be greatly appreciated.

I eyeballed this and it looks correct to me, except that the comment
at the top is slightly wrong.

On error, copy_from_user and copy_to_user do not return -EFAULT,
They return the positive number of bytes *not* copied due to address
space errors.

Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.032 / U:0.136 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site