[PATCH] fixup
From: Lorenzo Stoakes
Date: Mon Nov 10 2025 - 14:46:55 EST
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx>
---
include/linux/leafops.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/leafops.h b/include/linux/leafops.h
index a464a7e08c76..325cc87c3363 100644
--- a/include/linux/leafops.h
+++ b/include/linux/leafops.h
@@ -56,7 +56,7 @@ static inline softleaf_t softleaf_from_pte(pte_t pte)
{
softleaf_t arch_entry;
- if (pte_present(pte))
+ if (pte_present(pte) || pte_none())
return softleaf_mk_none();
pte = pte_swp_clear_flags(pte);
@@ -95,7 +95,7 @@ static inline softleaf_t softleaf_from_pmd(pmd_t pmd)
{
softleaf_t arch_entry;
- if (pmd_present(pmd))
+ if (pmd_present(pmd) || pmd_none(pmd))
return softleaf_mk_none();
if (pmd_swp_soft_dirty(pmd))
--
2.51.0
Thanks, Lorenzo