diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 8b4bc38e1c0a..e0908e491065 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -485,7 +485,7 @@ static int allocate_file_region_entries(struct resv_map *resv, spin_lock(&resv->lock); - list_splice(&allocated_regions, &resv->region_cache); + list_splice_init(&allocated_regions, &resv->region_cache); resv->region_cache_count += to_allocate; }