From: Keir Fraser Subject: Re: page_list_splice Date: Thu, 05 Mar 2009 20:46:06 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org On 05/03/2009 20:23, "Dan Magenheimer" 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