diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-04 12:39:29 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-04 12:39:29 +0100 |
commit | 283fec5d9ac814b489580c1c8d1069447454fe63 (patch) | |
tree | acb488884473ba69e0086bb849a3adb70f9f0a08 /xen/arch/x86/flushtlb.c | |
parent | 82fa47405a5f7b5071603e4df7387297303b6035 (diff) | |
download | xen-283fec5d9ac814b489580c1c8d1069447454fe63.tar.gz xen-283fec5d9ac814b489580c1c8d1069447454fe63.tar.bz2 xen-283fec5d9ac814b489580c1c8d1069447454fe63.zip |
x86: fix off-by-one error in the cache flush portion of flush_area_local().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/arch/x86/flushtlb.c')
-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 && |