mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Only use domain_to_node() on non-null domain pointer.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
24342075ea
commit
422463bf4a
1 file changed
+1
-1
@@ -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));
|
||||
|
||||