[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Re: [Xen-changelog] [xen-unstable] linux: Fix xenbus device write function.



On Wed, Mar 07, 2007 at 11:30:21AM -0800, Keir Fraser wrote:

>       u->len += len;
> -     if (u->len < (sizeof(u->u.msg) + u->u.msg.len))
> -             return len;
> +     if ((u->len < sizeof(u->u.msg)) ||
> +         (u->len < (sizeof(u->u.msg) + u->u.msg.len)))
> +             return rc;

What is this trying to achieve?

regards
john

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.