aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/sparse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/sparse.c b/mm/sparse.c
index 8903c484389a..5398d48c360a 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -273,8 +273,8 @@ struct page __init *sparse_mem_map_populate(unsigned long pnum, int nid)
273 if (map) 273 if (map)
274 return map; 274 return map;
275 275
276 map = alloc_bootmem_node(NODE_DATA(nid), 276 map = alloc_bootmem_pages_node(NODE_DATA(nid),
277 sizeof(struct page) * PAGES_PER_SECTION); 277 PAGE_ALIGN(sizeof(struct page) * PAGES_PER_SECTION));
278 return map; 278 return map;
279} 279}
280#endif /* !CONFIG_SPARSEMEM_VMEMMAP */ 280#endif /* !CONFIG_SPARSEMEM_VMEMMAP */