diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 107454312d5ef859ec8dc55f3ba13831cc5cbc65..dea15e6bfc8d8a767dfa010ae562ab317a2ce828 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -1577,7 +1577,7 @@ static void *__vmalloc_area_node(struct vm_struct *area, gfp_t gfp_mask, struct page *page; gfp_t tmp_mask = gfp_mask | __GFP_NOWARN; - if (node < 0) + if (node == NUMA_NO_NODE) page = alloc_page(tmp_mask); else page = alloc_pages_node(node, tmp_mask, order);