|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] A bug in Xenbus driver
On 08/25/2010 12:11 PM, Jeremy Fitzhardinge wrote:
> copy_to_user returns the number of uncopied bytes, so if ret != sz, then
> some part of the data was not copied due to a memory fault problem.
No, wait, I've contradicted myself. copy_to_user does return the number
of uncopied bytes, so the result should be 0 on success, and you're
right, the test should be "ret != 0".
Sorry about that.
J
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|