diff --git a/mm/swap.c b/mm/swap.c index 1841c24682f8f12fbad984830f111fa8cdfb20cb..e8c9dc6d03771b2035079f0ebd74891e7169e31c 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -156,6 +156,7 @@ void put_pages_list(struct list_head *pages) } free_unref_page_list(pages); + INIT_LIST_HEAD(pages); } EXPORT_SYMBOL(put_pages_list);