Re: Followup: copy_to_user return value breaks lots of code

Linus Torvalds (
Fri, 23 Jan 1998 10:08:01 -0800 (PST)

On Fri, 23 Jan 1998, Richard Henderson wrote:
> On Thu, Jan 22, 1998 at 12:35:38PM -0600, Michael Elizabeth Chastain wrote:
> > The new copy_to_user returns the number of bytes written,
> In that none of the other architectures were modified,
> or notified that they should be, I have to assume this
> was a mistake in the trasition to out-of-line.

It's definitely a mistake. The copy_to/from_user() things should still
return the number of bytes left _un_copied (ie zero under normal