aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xen/include/asm-arm/mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/include/asm-arm/mm.h b/xen/include/asm-arm/mm.h
index 27284d01ce..97c2ee0302 100644
--- a/xen/include/asm-arm/mm.h
+++ b/xen/include/asm-arm/mm.h
@@ -190,7 +190,7 @@ static inline void __iomem *ioremap_wc(paddr_t start, size_t len)
#define mfn_valid(mfn) ({ \
unsigned long __m_f_n = (mfn); \
- likely(__m_f_n < max_page); \
+ likely(__m_f_n >= frametable_base_mfn && __m_f_n < max_page); \
})
#define max_pdx max_page