Only use domain_to_node() on non-null domain pointer.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2008-07-06 17:22:58 +01:00
1 parent 24342075ea
commit 422463bf4a
1 file changed
+1 -1
+1 -1
View File
@@ -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));
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.