mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86: fix off-by-one error in the cache flush portion of flush_area_local().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
1 parent
82fa47405a
commit
283fec5d9a
1 file changed
+1
-1
@@ -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 &&
|
||||
|
||||