[PATCH] fixup io_remap_pfn_range_[prepare, complete]
From: Lorenzo Stoakes
Date: Thu Sep 18 2025 - 02:43:21 EST
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
---
mm/internal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/internal.h b/mm/internal.h
index 085e34f84bae..38607b2821d9 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -1670,7 +1670,7 @@ static inline int io_remap_pfn_range_complete(struct vm_area_struct *vma,
pgprot_t orig_prot)
{
const unsigned long pfn = io_remap_pfn_range_pfn(orig_pfn, size);
- const pgprot_t prot = io_remap_pfn_range_prot(orig_prot);
+ const pgprot_t prot = pgprot_decrypted(orig_prot);
return remap_pfn_range_complete(vma, addr, pfn, size, prot);
}
--
2.51.0