diff options
author | Jaeyong Yoo <jaeyong.yoo@samsung.com> | 2013-08-23 18:08:41 +0900 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-08-27 14:27:26 +0100 |
commit | ceb93c72d2046bffecd57fcbebd04aa0801414a2 (patch) | |
tree | c166967c8513736f69beaf82cb9ee4710f15a0fe /xen/include | |
parent | 604ab14cde7aef3bcdd7bc3bc398e7d1705dc631 (diff) | |
download | xen-ceb93c72d2046bffecd57fcbebd04aa0801414a2.tar.gz xen-ceb93c72d2046bffecd57fcbebd04aa0801414a2.tar.bz2 xen-ceb93c72d2046bffecd57fcbebd04aa0801414a2.zip |
xen/arm: add lower-bound check in mfn_valid
mfn_valid only checks the upper-bound of mfn (max_page).
Add the lower-bound check of mfn (frametable_base_mfn).
Signed-off-by: Jaeyong Yoo <jaeyong.yoo@samsung.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Diffstat (limited to 'xen/include')
-rw-r--r-- | xen/include/asm-arm/mm.h | 2 |
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 |