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

Re: [Xen-devel] page_list_splice



On 05/03/2009 20:23, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> wrote:

> Without this clause, I get a null-pointer (actually null+4)
> dereference... I think I must be missing some basic
> difference between normal list code and page_list code.

An empty list has NULL pointers in its list_head. You therefore set at=NULL,
and then dereference at->list.prev later. So I guess you do need that second
if stmt.

 -- Keir



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