Skip to content

Commit

Permalink
KERNEL: Use pte offset kernel function for mapped pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tvegas1 committed Oct 2, 2023
1 parent e39bb4d commit f642033
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/xpmem_pfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ xpmem_vaddr_to_pte_offset(struct mm_struct *mm, u64 vaddr, u64 *offset)
}
#endif

pte = pte_offset_map(pmd, vaddr);
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_present(*pte))
return NULL;

Expand Down Expand Up @@ -218,7 +218,7 @@ xpmem_vaddr_to_pte_size(struct mm_struct *mm, u64 vaddr, u64 *size)
return NULL;
}

pte = pte_offset_map(pmd, vaddr);
pte = pte_offset_kernel(pmd, vaddr);
if (!pte_present(*pte)) {
*size = PAGE_SIZE;
return NULL;
Expand Down

0 comments on commit f642033

Please sign in to comment.