ia64/xen-unstable

changeset 17987:8606ff75779f

Only use domain_to_node() on non-null domain pointer.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jul 06 17:22:58 2008 +0100 (2008-07-06)
parents 4bdc3de246c3
children 5eaec8296a22
files xen/common/page_alloc.c
line diff
     1.1 --- a/xen/common/page_alloc.c	Sat Jul 05 14:43:37 2008 +0100
     1.2 +++ b/xen/common/page_alloc.c	Sun Jul 06 17:22:58 2008 +0100
     1.3 @@ -792,7 +792,7 @@ struct page_info *alloc_domheap_pages(
     1.4  
     1.5      ASSERT(!in_irq());
     1.6  
     1.7 -    if ( node == NUMA_NO_NODE )
     1.8 +    if ( (node == NUMA_NO_NODE) && (d != NULL) )
     1.9          node = domain_to_node(d);
    1.10  
    1.11      bits = domain_clamp_alloc_bitsize(d, bits ? : (BITS_PER_LONG+PAGE_SHIFT));