projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604ab14
)
xen/arm: add lower-bound check in mfn_valid
author
Jaeyong Yoo
<jaeyong.yoo@samsung.com>
Fri, 23 Aug 2013 09:08:41 +0000
(18:08 +0900)
committer
Ian Campbell
<ian.campbell@citrix.com>
Tue, 27 Aug 2013 13:27:26 +0000
(14:27 +0100)
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>
xen/include/asm-arm/mm.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-arm/mm.h
b/xen/include/asm-arm/mm.h
index 27284d01cee1deeddbe21a695362c8e9ac9c8d20..97c2ee0302bbd84e2f567dd69380c3286cc9c7ad 100644
(file)
--- 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