Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9de45f73 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390/mm: fix memory leak of ptlock in pmd_free_tlb



The pmd_free_tlb function fails to call pgtable_pmd_page_dtor.
Without the call the ptlock for the pmd tables will not be freed.
Add the missing call.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 86ed42f4
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -121,6 +121,7 @@ static inline void pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd,
#ifdef CONFIG_64BIT
#ifdef CONFIG_64BIT
	if (tlb->mm->context.asce_limit <= (1UL << 31))
	if (tlb->mm->context.asce_limit <= (1UL << 31))
		return;
		return;
	pgtable_pmd_page_dtor(virt_to_page(pmd));
	tlb_remove_table(tlb, pmd);
	tlb_remove_table(tlb, pmd);
#endif
#endif
}
}