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:
Keir Fraser committed 2010-05-04 12:39:29 +01:00
1 parent 82fa47405a
commit 283fec5d9a
1 file changed
+1 -1
+1 -1
View File
@@ -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 &&
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.