Message ID | 20210909210614.DvCgJbUR1%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] mm-page_allocc-avoid-accessing-uninitialized-pcp-page-migratetype.patch removed from -mm tree | expand |
--- a/mm/page_alloc.c~mm-page_allocc-avoid-accessing-uninitialized-pcp-page-migratetype +++ a/mm/page_alloc.c @@ -3428,8 +3428,10 @@ void free_unref_page_list(struct list_he /* Prepare pages for freeing */ list_for_each_entry_safe(page, next, list, lru) { pfn = page_to_pfn(page); - if (!free_unref_page_prepare(page, pfn, 0)) + if (!free_unref_page_prepare(page, pfn, 0)) { list_del(&page->lru); + continue; + } /* * Free isolated pages directly to the allocator, see