Followup: copy_to_user return value breaks lots of code

Michael Elizabeth Chastain (mec@shout.net)
Thu, 22 Jan 1998 12:35:38 -0600


Hi Linus,
Hi Kernel Hackers,

The new copy_to_user returns the number of bytes written,
but lots of drivers call it like this:

if (copy_to_user(..., ..., ...))
return -EFAULT;

That's gotta hurt.

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"