diff --git a/mm/sparse.c b/mm/sparse.c index 5b94dd163da3d3..46de24ee3eb85c 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -872,7 +872,7 @@ int __meminit sparse_add_section(int nid, unsigned long start_pfn, * Poison uninitialized struct pages in order to catch invalid flags * combinations. */ - page_init_poison(pfn_to_page(start_pfn), sizeof(struct page) * nr_pages); + page_init_poison(memmap, sizeof(struct page) * nr_pages); ms = __pfn_to_section(start_pfn); set_section_nid(section_nr, nid);