diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:46:25 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-10 09:46:25 +0100 |
commit | 8820874d94ca380fbad3fa99ef40c52e215f3d64 (patch) | |
tree | 58bde4839d7a13ff7f85eb85ff0ac1619d6cecdb | |
parent | b97c2fa4930d3283431686b3805bc72290e631a7 (diff) | |
download | xen-8820874d94ca380fbad3fa99ef40c52e215f3d64.tar.gz xen-8820874d94ca380fbad3fa99ef40c52e215f3d64.tar.bz2 xen-8820874d94ca380fbad3fa99ef40c52e215f3d64.zip |
x86: fix off-by-one error in the cache flush portion of flush_area_local().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset: 21270:bd52f2e040e5
xen-unstable date: Tue May 04 12:39:29 2010 +0100
-rw-r--r-- | xen/arch/x86/flushtlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/flushtlb.c b/xen/arch/x86/flushtlb.c index 5a012d4a0d..e0388e7cd9 100644 --- a/xen/arch/x86/flushtlb.c +++ b/xen/arch/x86/flushtlb.c @@ -149,7 +149,7 @@ void flush_area_local(const void *va, unsigned int flags) { unsigned long i, sz = 0; - if ( order < (BITS_PER_LONG - PAGE_SHIFT - 1) ) + if ( order < (BITS_PER_LONG - PAGE_SHIFT) ) sz = 1UL << (order + PAGE_SHIFT); if ( c->x86_clflush_size && c->x86_cache_size && sz && |