diff --git a/mm/huge_memory.c b/mm/huge_memory.c index 209b33e8c2476a..6560174edf2a44 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1561,8 +1561,8 @@ bool madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, get_page(page); spin_unlock(ptl); split_huge_page(page); - put_page(page); unlock_page(page); + put_page(page); goto out_unlocked; }