Huh?? copy_to/from_user returns the bytes _not_ copied, in which
case you return -EFAULT go segv the caller.
I think the confusion usually is that put/get_user return -EFAULT
directly.
-- * Jens Axboe <axboe@suse.de> * SuSE Labs - 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/