diff --git a/mm/huge_memory.c b/mm/huge_memory.c index b2db98136af9d574646ef3f25d3cf1d462c174c1..50342eff796043e8e6c3daaac27c7c3779614a20 100644 --- a/mm/huge_memory.c +++ b/mm/huge_memory.c @@ -1561,7 +1561,7 @@ int madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, int ret = 0; if (!pmd_trans_huge_lock(pmd, vma, &ptl)) - goto out; + goto out_unlocked; orig_pmd = *pmd; if (is_huge_zero_pmd(orig_pmd)) {