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

Commit 86d62b0f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Use the kernel mm data in case the address is more than PAGE_OFFSET"

parents f01c4216 3be32295
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -716,11 +716,14 @@ static inline void pte_update(unsigned long addr, pteval_t mask,
				  pteval_t prot, struct mm_struct *mm)
{
	struct pte_data data;
	struct mm_struct *apply_mm = mm;

	data.mask = mask;
	data.val = prot;

	apply_to_page_range(mm, addr, SECTION_SIZE, __pte_update, &data);
	if (addr >= PAGE_OFFSET)
		apply_mm = &init_mm;
	apply_to_page_range(apply_mm, addr, SECTION_SIZE, __pte_update, &data);
	flush_tlb_kernel_range(addr, addr + SECTION_SIZE);
}