Re: [PATCH] drivers/char/ppdev.c: returning copy_to_user result

From: Michael Elizabeth Chastain (
Date: Fri Aug 25 2000 - 09:41:37 EST

> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:16 EST