Message ID | 20200219195049.K7dGY%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + mm-sparsemem-pfn_to_page-is-not-valid-yet-on-sparsemem.patch added to -mm tree | expand |
--- a/mm/sparse.c~mm-sparsemem-pfn_to_page-is-not-valid-yet-on-sparsemem +++ a/mm/sparse.c @@ -876,7 +876,7 @@ int __meminit sparse_add_section(int nid * 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 = __nr_to_section(section_nr); set_section_nid(section_nr, nid);