From: Keir Fraser Date: Sun, 6 Jul 2008 16:22:58 +0000 (+0100) Subject: Only use domain_to_node() on non-null domain pointer. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14188^2~92 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=422463bf4aa918fadfba4e7c490f2040c847b9e7;p=xen.git Only use domain_to_node() on non-null domain pointer. Signed-off-by: Keir Fraser --- diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 8502d77999..d497fdfd57 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -792,7 +792,7 @@ struct page_info *alloc_domheap_pages( ASSERT(!in_irq()); - if ( node == NUMA_NO_NODE ) + if ( (node == NUMA_NO_NODE) && (d != NULL) ) node = domain_to_node(d); bits = domain_clamp_alloc_bitsize(d, bits ? : (BITS_PER_LONG+PAGE_SHIFT));