On Fri, 4 April 2003 08:44:09 +0000, Randy.Dunlap wrote:
> On Fri, 4 Apr 2003 09:56:52 +0200 Jörn Engel <joern@wohnheim.fh-wedel.de> wrote:
>
> | On Thu, 3 April 2003 17:33:52 +0000, Randy.Dunlap wrote:
> | >
> | > | > + error = copy_to_user(io, my_io, sizeof(*my_io)) ? -EFAULT : 0;
> | > |
> | > | copy_to_user returns the bytes successfully copied.
> | > | error is set to -EFAULT, if there was actually data transferred?
> | >
> | > Did you verify that?
> |
> | Yes, but I do make mistakes. Better double-check it yourself.
>
> Oh, I did. That's why I am asking you.
It was my mistake. I got confused reading uaccess.h. Sorry about that.
Jörn
-- Time? What's that? Time is only worth what you do with it. -- Theo de Raadt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:23 EST